terminate string in buffer with 0
authorMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 09:09:45 +0000 (09:09 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Tue, 4 Apr 2006 09:09:45 +0000 (09:09 +0000)
org.glite.lb.common/src/lb_maildir.c

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