summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/entries.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-06 20:10:03 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-06 20:10:03 +0000
commit62b349c7ec3ae59c0b2c2d08d8630711a5f2acc7 (patch)
tree930fda4715ffb8908a4d1ba736aaabeacfc59342 /usr.bin/cvs/entries.c
parente8638a6aaf29391e0b8e167f14a45d5c50fd260a (diff)
Fix usage of cvs_splitpath()
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r--usr.bin/cvs/entries.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c
index da6d39cf2f8..a8dd886510f 100644
--- a/usr.bin/cvs/entries.c
+++ b/usr.bin/cvs/entries.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: entries.c,v 1.10 2004/08/04 15:39:10 jfb Exp $ */
+/* $OpenBSD: entries.c,v 1.11 2004/08/06 20:10:02 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -402,11 +402,11 @@ cvs_ent_free(struct cvs_ent *ent)
struct cvs_ent*
cvs_ent_getent(const char *path)
{
- char base[MAXPATHLEN], file[MAXPATHLEN];
+ char base[MAXPATHLEN], *file;
CVSENTRIES *entf;
struct cvs_ent *ep;
- cvs_splitpath(path, base, sizeof(base), file, sizeof(file));
+ cvs_splitpath(path, base, sizeof(base), &file);
entf = cvs_ent_open(base, O_RDONLY);
if (entf == NULL)