diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-25 13:31:46 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-25 13:31:46 +0000 |
commit | 6259f2a8f2da8642f97c2f9412807c4bcf9860ba (patch) | |
tree | 3657b287d0ed3cd84221487117bccb3ccb0a202f /usr.bin/cvs | |
parent | f3e5d63bb335cc5a321ef671a4c72ce4782c5c4b (diff) |
this snprintf() occurence should have been removed in previous commit.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/root.c | 4 |
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, |