summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/resp.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2006-03-16 08:43:44 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2006-03-16 08:43:44 +0000
commit9b7a7724c3227b8df6f861b9c4e06db740a27e9c (patch)
tree6ae2f039522552342a0acf7738fa481ba2ca1938 /usr.bin/cvs/resp.c
parentc11da85d1f946b21c65e68470f4cb4aadae31c79 (diff)
add missing {} so everything gets reached.
Diffstat (limited to 'usr.bin/cvs/resp.c')
-rw-r--r--usr.bin/cvs/resp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/resp.c b/usr.bin/cvs/resp.c
index 471c70ac635..e57ad3e5780 100644
--- a/usr.bin/cvs/resp.c
+++ b/usr.bin/cvs/resp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: resp.c,v 1.71 2006/01/27 12:56:28 xsa Exp $ */
+/* $OpenBSD: resp.c,v 1.72 2006/03/16 08:43:43 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -336,9 +336,10 @@ cvs_resp_statdir(struct cvsroot *root, int type, char *line)
if (strlcpy(statpath, line, sizeof(statpath)) >= sizeof(statpath) ||
strlcat(statpath, "/", sizeof(statpath)) >= sizeof(statpath) ||
strlcat(statpath, CVS_PATH_STATICENTRIES,
- sizeof(statpath)) >= sizeof(statpath))
+ sizeof(statpath)) >= sizeof(statpath)) {
cvs_log(LP_ERR, "Entries.static path truncation");
return (-1);
+ }
if (cvs_noexec == 0) {
if ((type == CVS_RESP_CLRSTATDIR) &&