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,
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 */
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);
}