merge with 3.0 branch (merge_30_31_src2 - merge_30_31_src3)
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 18 Jan 2007 12:50:22 +0000 (12:50 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 18 Jan 2007 12:50:22 +0000 (12:50 +0000)
org.glite.lb.logger/src/il_error.c

index e608b1c..1fe9bb9 100644 (file)
@@ -143,6 +143,8 @@ set_error(int code, long minor, char *msg)
          strncpy(err->msg, msg, IL_ERR_MSG_LEN);
   }
 
+  err->msg[IL_ERR_MSG_LEN] = 0; /* OK, malloc()ed IL_ERR_MSG_LEN + 1 */
+
   return(code);
 }