diff options
author | 2009-06-02 22:37:05 +0000 | |
---|---|---|
committer | 2009-06-02 22:37:05 +0000 | |
commit | 0d4d1fd508451f030ec5ca494b133d35a63947c6 (patch) | |
tree | e087c9067c9442e63633f2ed61ba5f12e339df37 | |
parent | Set errno to EINVAL when fgets is given a non-positive size. (diff) | |
download | wireguard-openbsd-0d4d1fd508451f030ec5ca494b133d35a63947c6.tar.xz wireguard-openbsd-0d4d1fd508451f030ec5ca494b133d35a63947c6.zip |
snprintf returns int, not size_t.
OK millert otto deraadt
-rw-r--r-- | sbin/ncheck_ffs/ncheck_ffs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/ncheck_ffs/ncheck_ffs.c b/sbin/ncheck_ffs/ncheck_ffs.c index cfc38226b15..b4d2a9cf771 100644 --- a/sbin/ncheck_ffs/ncheck_ffs.c +++ b/sbin/ncheck_ffs/ncheck_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncheck_ffs.c,v 1.33 2007/08/06 19:16:05 sobrado Exp $ */ +/* $OpenBSD: ncheck_ffs.c,v 1.34 2009/06/02 22:37:05 ray Exp $ */ /*- * Copyright (c) 1995, 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -55,7 +55,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.33 2007/08/06 19:16:05 sobrado Exp $"; +static const char rcsid[] = "$OpenBSD: ncheck_ffs.c,v 1.34 2009/06/02 22:37:05 ray Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -594,8 +594,9 @@ format_entry(const char *path, struct direct *dp) { static size_t size; static char *buf; - size_t len, nsize; + size_t nsize; char *src, *dst, *newbuf; + int len; if (buf == NULL) { if ((buf = malloc(LINE_MAX)) == NULL) |