=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/remove.c,v retrieving revision 1.66 retrieving revision 1.67 diff -c -r1.66 -r1.67 *** src/usr.bin/cvs/remove.c 2007/09/22 16:01:22 1.66 --- src/usr.bin/cvs/remove.c 2008/01/10 10:08:22 1.67 *************** *** 1,4 **** ! /* $OpenBSD: remove.c,v 1.66 2007/09/22 16:01:22 joris Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * --- 1,4 ---- ! /* $OpenBSD: remove.c,v 1.67 2008/01/10 10:08:22 tobias Exp $ */ /* * Copyright (c) 2005, 2006 Xavier Santolaria * *************** *** 189,196 **** sizeof(rbuf)); ctime_r(&cf->file_ent->ce_mtime, tbuf); ! if (tbuf[strlen(tbuf) - 1] == '\n') ! tbuf[strlen(tbuf) - 1] = '\0'; entry = xmalloc(CVS_ENT_MAXLINELEN); (void)xsnprintf(entry, CVS_ENT_MAXLINELEN, --- 189,195 ---- sizeof(rbuf)); ctime_r(&cf->file_ent->ce_mtime, tbuf); ! tbuf[strcspn(tbuf, "\n")] = '\0'; entry = xmalloc(CVS_ENT_MAXLINELEN); (void)xsnprintf(entry, CVS_ENT_MAXLINELEN,