=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/commit.c,v retrieving revision 1.92 retrieving revision 1.93 diff -c -r1.92 -r1.93 *** src/usr.bin/cvs/commit.c 2007/01/12 18:27:18 1.92 --- src/usr.bin/cvs/commit.c 2007/01/12 19:28:12 1.93 *************** *** 1,4 **** ! /* $OpenBSD: commit.c,v 1.92 2007/01/12 18:27:18 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria --- 1,4 ---- ! /* $OpenBSD: commit.c,v 1.93 2007/01/12 19:28:12 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria *************** *** 205,210 **** --- 205,211 ---- { BUF *b, *d; int isnew; + RCSNUM *head; int l, openflags, rcsflags; char rbuf[24], nbuf[24]; CVSENTRIES *entlist; *************** *** 221,230 **** if (cf->file_status == FILE_MODIFIED || cf->file_status == FILE_REMOVED || (cf->file_status == FILE_ADDED ! && cf->file_rcs != NULL && cf->file_rcs->rf_dead == 1)) ! rcsnum_tostr(rcs_head_get(cf->file_rcs), rbuf, sizeof(rbuf)); ! else strlcpy(rbuf, "Non-existent", sizeof(rbuf)); isnew = 0; if (cf->file_status == FILE_ADDED) { --- 222,234 ---- if (cf->file_status == FILE_MODIFIED || cf->file_status == FILE_REMOVED || (cf->file_status == FILE_ADDED ! && cf->file_rcs != NULL && cf->file_rcs->rf_dead == 1)) { ! head = rcs_head_get(cf->file_rcs); ! rcsnum_tostr(head, rbuf, sizeof(rbuf)); ! rcsnum_free(head); ! } else { strlcpy(rbuf, "Non-existent", sizeof(rbuf)); + } isnew = 0; if (cf->file_status == FILE_ADDED) {