From: Andrew Tridgell Date: Wed, 9 Sep 1998 07:06:44 +0000 (+0000) Subject: fixed timestring() bug X-Git-Tag: v2.1.1~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35bdd146e4e92e0a8c99b54e243b6ad3ff1e11e0;p=thirdparty%2Frsync.git fixed timestring() bug --- diff --git a/log.c b/log.c index bbb5963a..18db19a0 100644 --- a/log.c +++ b/log.c @@ -42,7 +42,7 @@ static char *timestring(void ) #endif if (TimeBuf[strlen(TimeBuf)-1] == '\n') { - TimeBuf[strlen(TimeBuf)-1] == 0; + TimeBuf[strlen(TimeBuf)-1] = 0; } return(TimeBuf);