summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bb0b31a)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6817
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
restart_receive: /* Goto here when the receive of a message failed */
need_restart = 0;
now = gras_os_time();
restart_receive: /* Goto here when the receive of a message failed */
need_restart = 0;
now = gras_os_time();
- memset(&msg, sizeof(msg), 0);
+ memset(&msg, 0, sizeof(msg));
TRY {
xbt_queue_shift_timed(pd->msg_received, &msg,
TRY {
xbt_queue_shift_timed(pd->msg_received, &msg,
void gras_msg_ctx_mallocator_reset_f(void *ctx)
{
void gras_msg_ctx_mallocator_reset_f(void *ctx)
{
- memset(ctx, sizeof(s_gras_msg_cb_ctx_t), 0);
+ memset(ctx, 0, sizeof(s_gras_msg_cb_ctx_t));
}
/** @brief Launch a RPC call, but do not block for the answer */
}
/** @brief Launch a RPC call, but do not block for the answer */
sprintf(suite_title + 40 - (suite_len + 4) / 2, "[ %s ]", suite->title);
suite_title[40 + (suite_len + 5) / 2] = '=';
if (!suite->enabled)
sprintf(suite_title + 40 - (suite_len + 4) / 2, "[ %s ]", suite->title);
suite_title[40 + (suite_len + 5) / 2] = '=';
if (!suite->enabled)
- sprintf(suite_title + 70, " DISABLED ");
+ snprintf(suite_title + 70, 11, " DISABLED ");
fprintf(stderr, "\n%s\n", suite_title);
}
fprintf(stderr, "\n%s\n", suite_title);
}