Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=firepl.git;a=commitdiff;h=1a3dcf8df01e6b347242b9e159ec7fc7d19c7d5d
commit 1a3dcf8df01e6b347242b9e159ec7fc7d19c7d5d Author: James Buren <[email protected]> Date: Sat Apr 28 23:43:20 2012 -0500 null terminate getline buffer diff --git a/dsb.c b/dsb.c index 6b2adde..720b6e7 100644 --- a/dsb.c +++ b/dsb.c @@ -121,5 +121,7 @@ extern const char *dsb_getline(dsb *self,FILE *file) dsb_putc(self,c); } + dsb_putc(self,0); + return *self->str ? self->str : 0; } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
