diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-11 11:54:43 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2005-08-11 11:54:43 +0000 |
commit | 0f5937b0a2279b0ec5daaae8c37407f2cac23f32 (patch) | |
tree | 20ebae0dfe35ce173622d4d0e2b9321ffab3f013 /usr.bin/cvs | |
parent | 0588a459a6c9eb2b5e428277946bb9fa49fa7274 (diff) |
fgets() expects the 2nd arg to be an int.
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
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; |