=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/add.c,v retrieving revision 1.85 retrieving revision 1.86 diff -c -r1.85 -r1.86 *** src/usr.bin/cvs/add.c 2008/01/10 09:44:32 1.85 --- src/usr.bin/cvs/add.c 2008/01/10 10:08:22 1.86 *************** *** 1,4 **** ! /* $OpenBSD: add.c,v 1.85 2008/01/10 09:44:32 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: add.c,v 1.86 2008/01/10 10:08:22 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2005, 2006 Xavier Santolaria *************** *** 381,388 **** rcsnum_tostr(cf->file_ent->ce_rev, revbuf, sizeof(revbuf)); ctime_r(&cf->file_ent->ce_mtime, tbuf); ! if (tbuf[strlen(tbuf) - 1] == '\n') ! tbuf[strlen(tbuf) - 1] = '\0'; /* Remove the '-' prefixing the version number. */ (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, --- 381,387 ---- rcsnum_tostr(cf->file_ent->ce_rev, revbuf, sizeof(revbuf)); ctime_r(&cf->file_ent->ce_mtime, tbuf); ! tbuf[strcspn(tbuf, "\n")] = '\0'; /* Remove the '-' prefixing the version number. */ (void)xsnprintf(entry, CVS_ENT_MAXLINELEN,