Ending the string read from the file.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 7 Nov 2005 14:23:25 +0000 (14:23 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 7 Nov 2005 14:23:25 +0000 (14:23 +0000)
org.glite.lb.common/src/lb_maildir.c

index a221186..3fffd9c 100644 (file)
@@ -351,6 +351,7 @@ int edg_wll_MaildirTransStart(
                if ( ct == 0 ) break;
                bufuse += ct;
        } while ( ct == toread );
+       buf[bufuse] = '\0';
        close(fhnd);
 
        if ( !(*fname = strdup(ent->d_name)) ) goto err;