summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/server.c
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-08-10 14:49:21 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-08-10 14:49:21 +0000
commit084d2b9d61aa63ee95d1a3a40a1ec90585c1e32f (patch)
tree0ff149f6d105904d9c08ede1d18a0ff60bcb32c3 /usr.bin/cvs/server.c
parent438affe30176a61ddfcb5338b2cac1f6c83a2d77 (diff)
fgets() expects the 2nd arg to be an int. OK jfb@ joris@.
Diffstat (limited to 'usr.bin/cvs/server.c')
-rw-r--r--usr.bin/cvs/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 3c76ca702cd..20887c599a1 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.21 2005/08/08 14:28:59 xsa Exp $ */
+/* $OpenBSD: server.c,v 1.22 2005/08/10 14:49:20 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -103,7 +103,7 @@ cvs_server(int argc, char **argv)
return (CVS_EX_FILE);
for (;;) {
- if (fgets(reqbuf, sizeof(reqbuf), stdin) == NULL) {
+ if (fgets(reqbuf, (int)sizeof(reqbuf), stdin) == NULL) {
if (feof(stdin))
break;
else if (ferror(stdin))