summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/util.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 01:49:27 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-30 01:49:27 +0000
commitb59c4319a2b0bee7cbb7f9ef3342f372940000e1 (patch)
treea92383f8032facbf9c49611d38ee8dd3cfeaa963 /usr.bin/cvs/util.c
parentf1a256bf9c1770f12d8fbfedbab0ecc0c472d43d (diff)
Move to the new API for the client-server protocol. All functions now
take a cvs root structure as parameter. This will allow for much easier management of CVS trees that make use of multiple roots.
Diffstat (limited to 'usr.bin/cvs/util.c')
-rw-r--r--usr.bin/cvs/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c
index aa738d002c4..499c87ac537 100644
--- a/usr.bin/cvs/util.c
+++ b/usr.bin/cvs/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.3 2004/07/28 01:50:05 jfb Exp $ */
+/* $OpenBSD: util.c,v 1.4 2004/07/30 01:49:24 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -277,7 +277,7 @@ cvs_splitpath(const char *path, char *dir, size_t dlen, char *file, size_t flen)
}
}
else {
- rlen = MIN(dlen - 1, sp - path);
+ rlen = MIN(dlen - 1, (size_t)(sp - path));
if (dir != NULL) {
strncpy(dir, path, rlen);
dir[rlen] = '\0';