From: Miloš Mulač Date: Fri, 4 May 2007 14:59:44 +0000 (+0000) Subject: correct string copy (prevents coredump if seed is != NULL) X-Git-Tag: glite-lb-common_R_5_0_3_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f8ed15f79bda616038feb4d29f856097c09ddc94;p=jra1mw.git correct string copy (prevents coredump if seed is != NULL) - merge from HEAD --- diff --git a/org.glite.lb.common/src/context.c b/org.glite.lb.common/src/context.c index 0da0031..ed04cb2 100644 --- a/org.glite.lb.common/src/context.c +++ b/org.glite.lb.common/src/context.c @@ -467,7 +467,7 @@ int edg_wll_GenerateSubjobIds( intseed = strdup("edg_wll_GenerateSubjobIds()"); } else - intseed = seed; + intseed = strdup(seed); for (subjob = 0; subjob < num_subjobs; subjob++) {