=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/entries.c,v retrieving revision 1.63 retrieving revision 1.64 diff -c -r1.63 -r1.64 *** src/usr.bin/cvs/entries.c 2006/12/07 10:44:16 1.63 --- src/usr.bin/cvs/entries.c 2006/12/07 13:28:21 1.64 *************** *** 1,4 **** ! /* $OpenBSD: entries.c,v 1.63 2006/12/07 10:44:16 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * --- 1,4 ---- ! /* $OpenBSD: entries.c,v 1.64 2006/12/07 13:28:21 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink * *************** *** 38,50 **** ep = (CVSENTRIES *)xmalloc(sizeof(*ep)); memset(ep, 0, sizeof(*ep)); ! cvs_path_cat(dir, CVS_PATH_ENTRIES, buf, sizeof(buf)); ep->cef_path = xstrdup(buf); ! cvs_path_cat(dir, CVS_PATH_BACKUPENTRIES, buf, sizeof(buf)); ep->cef_bpath = xstrdup(buf); ! cvs_path_cat(dir, CVS_PATH_LOGENTRIES, buf, sizeof(buf)); ep->cef_lpath = xstrdup(buf); TAILQ_INIT(&(ep->cef_ent)); --- 38,59 ---- ep = (CVSENTRIES *)xmalloc(sizeof(*ep)); memset(ep, 0, sizeof(*ep)); ! if (cvs_path_cat(dir, CVS_PATH_ENTRIES, buf, sizeof(buf)) >= ! sizeof(buf)) ! fatal("cvs_ent_open: truncation"); ! ep->cef_path = xstrdup(buf); ! if (cvs_path_cat(dir, CVS_PATH_BACKUPENTRIES, buf, sizeof(buf)) >= ! sizeof(buf)) ! fatal("cvs_ent_open: truncation"); ! ep->cef_bpath = xstrdup(buf); ! if (cvs_path_cat(dir, CVS_PATH_LOGENTRIES, buf, sizeof(buf)) >= ! sizeof(buf)) ! fatal("cvs_ent_open: truncation"); ! ep->cef_lpath = xstrdup(buf); TAILQ_INIT(&(ep->cef_ent));