diff options
Diffstat (limited to 'usr.bin/cvs/config.c')
-rw-r--r-- | usr.bin/cvs/config.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/cvs/config.c b/usr.bin/cvs/config.c index 7def6425acc..2436b77f86b 100644 --- a/usr.bin/cvs/config.c +++ b/usr.bin/cvs/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.7 2007/01/25 08:21:08 otto Exp $ */ +/* $OpenBSD: config.c,v 1.8 2007/02/17 18:23:43 xsa Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -31,9 +31,8 @@ cvs_parse_configfile(void) const char *errstr; char *p, *buf, *lbuf, *opt, *val, fpath[MAXPATHLEN]; - if (cvs_path_cat(current_cvsroot->cr_dir, CVS_PATH_CONFIG, - fpath, sizeof(fpath)) >= sizeof(fpath)) - fatal("cvs_parse_configfile: truncation"); + (void)xsnprintf(fpath, sizeof(fpath), "%s/%s", + current_cvsroot->cr_dir, CVS_PATH_CONFIG); cvs_log(LP_TRACE, "cvs_parse_configfile(%s)", fpath); |