summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/file.c
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-08-11 11:54:42 +0000
committerxsa <xsa@openbsd.org>2005-08-11 11:54:42 +0000
commit965a645df189c943ec046b8fdaf1a75b9e3e101f (patch)
tree9086c41ed5f31bbb7c4a35d686e584633a607cbe /usr.bin/cvs/file.c
parentgetdirentries() expects the 3rd arg to be an int. (diff)
downloadwireguard-openbsd-965a645df189c943ec046b8fdaf1a75b9e3e101f.tar.xz
wireguard-openbsd-965a645df189c943ec046b8fdaf1a75b9e3e101f.zip
fgets() expects the 2nd arg to be an int.
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r--usr.bin/cvs/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index 7a0931d7b3a..b31bb1f3074 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.111 2005/08/03 14:43:08 xsa Exp $ */
+/* $OpenBSD: file.c,v 1.112 2005/08/11 11:54:42 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -152,7 +152,7 @@ cvs_file_init(void)
cvs_log(LP_ERRNO,
"failed to open user's cvsignore file `%s'", path);
} else {
- while (fgets(buf, sizeof(buf), ifp) != NULL) {
+ while (fgets(buf, (int)sizeof(buf), ifp) != NULL) {
len = strlen(buf);
if (len == 0)
continue;