summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-28 11:18:02 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-07-28 11:18:02 +0000
commit04d0f1d314509e3f5822146a24ea0bdebab2b618 (patch)
tree5cc031115a42fec5d6c8e500d6e51c7db4b26072
parent845e2cbd6d71cf4754a777e1a69eeab5039f06ba (diff)
Only put a space in the client buffer if the request has a non-NULL
argument. This is only for prettying and makes us closer to the GNU behaviour
-rw-r--r--usr.bin/cvs/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/client.c b/usr.bin/cvs/client.c
index ba1d9d91591..1cb6bad21a7 100644
--- a/usr.bin/cvs/client.c
+++ b/usr.bin/cvs/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.4 2004/07/28 01:53:28 jfb Exp $ */
+/* $OpenBSD: client.c,v 1.5 2004/07/28 11:18:01 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -232,8 +232,8 @@ cvs_client_sendreq(u_int rid, const char *arg, int resp)
return (-1);
}
- snprintf(cvs_client_buf, sizeof(cvs_client_buf), "%s %s\n", reqp,
- (arg == NULL) ? "" : arg);
+ snprintf(cvs_client_buf, sizeof(cvs_client_buf), "%s%s%s\n", reqp,
+ (arg == NULL) ? "" : " ", (arg == NULL) ? "" : arg);
rbp = cvs_client_buf;