summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/root.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-01-25 13:31:46 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-01-25 13:31:46 +0000
commit6259f2a8f2da8642f97c2f9412807c4bcf9860ba (patch)
tree3657b287d0ed3cd84221487117bccb3ccb0a202f /usr.bin/cvs/root.c
parentf3e5d63bb335cc5a321ef671a4c72ce4782c5c4b (diff)
this snprintf() occurence should have been removed in previous commit.
Diffstat (limited to 'usr.bin/cvs/root.c')
-rw-r--r--usr.bin/cvs/root.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/cvs/root.c b/usr.bin/cvs/root.c
index 81f8a879c07..bfadd5d5960 100644
--- a/usr.bin/cvs/root.c
+++ b/usr.bin/cvs/root.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: root.c,v 1.29 2006/01/25 08:15:05 xsa Exp $ */
+/* $OpenBSD: root.c,v 1.30 2006/01/25 13:31:45 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -229,7 +229,6 @@ cvsroot_free(struct cvsroot *root)
struct cvsroot *
cvsroot_get(const char *dir)
{
- int l;
size_t len;
char rootpath[MAXPATHLEN], *rootstr, line[128];
FILE *fp;
@@ -237,7 +236,6 @@ cvsroot_get(const char *dir)
if (cvs_rootstr != NULL)
return cvsroot_parse(cvs_rootstr);
- l = snprintf(rootpath, sizeof(rootpath), "%s/" CVS_PATH_ROOTSPEC, dir);
if (strlcpy(rootpath, dir, sizeof(rootpath)) >= sizeof(rootpath) ||
strlcat(rootpath, "/", sizeof(rootpath)) >= sizeof(rootpath) ||
strlcat(rootpath, CVS_PATH_ROOTSPEC,