Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
If it is a win plateform we have to use wenvironment against environment.
[simgrid.git] / src / gras / Msg / gras_msg_exchange.c
index 79bd73c..ed0b3dd 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id$ */
-
 /* gras message exchanges                                                   */
 
-/* Copyright (c) 2003-2009. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -86,7 +85,7 @@ gras_msg_wait_ext_(double timeout,
   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,