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:
a2a65f0
)
add NULL terminator at the end array (prevents misbehavior in producer's edg_wll_Regi...
author
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 19 Oct 2006 14:30:01 +0000
(14:30 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Thu, 19 Oct 2006 14:30:01 +0000
(14:30 +0000)
org.glite.lb.client/examples/job_reg.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.client/examples/job_reg.c
b/org.glite.lb.client/examples/job_reg.c
index
4f67829
..
96bee79
100644
(file)
--- a/
org.glite.lb.client/examples/job_reg.c
+++ b/
org.glite.lb.client/examples/job_reg.c
@@
-123,7
+123,7
@@
int main(int argc, char *argv[])
}
if (reg_subjobs) {
- char ** jdls = (char**)
malloc(num_subjobs*
sizeof(char*));
+ char ** jdls = (char**)
calloc(num_subjobs+1,
sizeof(char*));
for (i=0; subjobs[i]; i++) {
asprintf(jdls+i, "JDL of subjob #%d\n", i+1);