git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63bf7fa
)
merge with 3.0 branch (merge_30_31_src2 - merge_30_31_src3)
author
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 18 Jan 2007 12:50:22 +0000
(12:50 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 18 Jan 2007 12:50:22 +0000
(12:50 +0000)
org.glite.lb.logger/src/il_error.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.logger/src/il_error.c
b/org.glite.lb.logger/src/il_error.c
index
e608b1c
..
1fe9bb9
100644
(file)
--- a/
org.glite.lb.logger/src/il_error.c
+++ b/
org.glite.lb.logger/src/il_error.c
@@
-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);
}