=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/update.c,v retrieving revision 1.112 retrieving revision 1.113 diff -c -r1.112 -r1.113 *** src/usr.bin/cvs/update.c 2007/09/23 11:19:24 1.112 --- src/usr.bin/cvs/update.c 2008/01/10 10:08:22 1.113 *************** *** 1,4 **** ! /* $OpenBSD: update.c,v 1.112 2007/09/23 11:19:24 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: update.c,v 1.113 2008/01/10 10:08:22 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 426,433 **** time(&now); ctime_r(&now, timebuf); ! if (timebuf[strlen(timebuf) - 1] == '\n') ! timebuf[strlen(timebuf) - 1] = '\0'; rcsnum_tostr(cf->file_ent->ce_rev, revbuf, sizeof(revbuf)); --- 426,432 ---- time(&now); ctime_r(&now, timebuf); ! timebuf[strcspn(timebuf, "\n")] = '\0'; rcsnum_tostr(cf->file_ent->ce_rev, revbuf, sizeof(revbuf));