From: František Dvořák Date: Mon, 7 Nov 2005 14:23:25 +0000 (+0000) Subject: Ending the string read from the file. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=29dd419dd03b1bc5deeabd93e8518fd6152820ab;p=jra1mw.git Ending the string read from the file. --- diff --git a/org.glite.lb.common/src/lb_maildir.c b/org.glite.lb.common/src/lb_maildir.c index a221186..3fffd9c 100644 --- a/org.glite.lb.common/src/lb_maildir.c +++ b/org.glite.lb.common/src/lb_maildir.c @@ -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;