two string buffer terminations added
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 10:57:52 +0000 (10:57 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 10:57:52 +0000 (10:57 +0000)
org.glite.lb.common/src/lb_maildir.c

index a221186..c53123c 100644 (file)
@@ -261,6 +261,7 @@ int edg_wll_MaildirRetryTransStart(
        close(fhnd);
 
        if ( !(*fname = strdup(ent->d_name)) ) goto err;
+       buf[bufuse] = 0;
        *msg = buf;
        return 1;
 
@@ -354,6 +355,7 @@ int edg_wll_MaildirTransStart(
        close(fhnd);
 
        if ( !(*fname = strdup(ent->d_name)) ) goto err;
+       buf[bufuse] = 0;
        *msg = buf;
        return 1;