=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.21 retrieving revision 1.22 diff -c -r1.21 -r1.22 *** src/usr.bin/cvs/util.c 2005/04/16 18:07:35 1.21 --- src/usr.bin/cvs/util.c 2005/04/16 20:05:05 1.22 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.21 2005/04/16 18:07:35 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.22 2005/04/16 20:05:05 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 559,565 **** (void)fclose(fp); } ! snprintf(path, sizeof(path), "%s/" CVS_PATH_REPOSITORY, dpath); if (l == -1 || l >= (int)sizeof(path)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", path); --- 559,565 ---- (void)fclose(fp); } ! l = snprintf(path, sizeof(path), "%s/" CVS_PATH_REPOSITORY, dpath); if (l == -1 || l >= (int)sizeof(path)) { errno = ENAMETOOLONG; cvs_log(LP_ERRNO, "%s", path);