summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/cvs/req.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/req.c b/usr.bin/cvs/req.c
index e57aa1fc10a..965982f7fa8 100644
--- a/usr.bin/cvs/req.c
+++ b/usr.bin/cvs/req.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: req.c,v 1.32 2005/10/07 21:47:32 reyk Exp $ */
+/* $OpenBSD: req.c,v 1.33 2005/12/03 20:27:35 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -277,6 +277,8 @@ cvs_req_directory(int reqid, char *line)
if (cvs_getln(NULL, rdir, sizeof(rdir)) < 0)
return (-1);
+ STRIP_SLASH(rdir);
+
if (cvs_req_currentdir != NULL)
free(cvs_req_currentdir);