diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-11 08:19:08 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-11 08:19:08 +0000 |
commit | 3008a1241e44a9aaba873734564ecb3779053be8 (patch) | |
tree | 7e68701fbc668d0186a8712cd84411372e88fe0e /usr.bin/stat/stat.c | |
parent | 90c763f2be1980c80bc13ddb13e5bb0060358f07 (diff) |
pass size of right buffer to strlcat. ok deraadt@
Diffstat (limited to 'usr.bin/stat/stat.c')
-rw-r--r-- | usr.bin/stat/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c index a22fb934e66..f106d734db9 100644 --- a/usr.bin/stat/stat.c +++ b/usr.bin/stat/stat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: stat.c,v 1.8 2005/04/11 08:14:26 deraadt Exp $ */ +/* $OpenBSD: stat.c,v 1.9 2005/04/11 08:19:07 otto Exp $ */ /* $NetBSD: stat.c,v 1.19 2004/06/20 22:20:16 jmc Exp $ */ /* @@ -39,7 +39,7 @@ #ifndef lint static const char rccs_id[] = - "$OpenBSD: stat.c,v 1.8 2005/04/11 08:14:26 deraadt Exp $"; + "$OpenBSD: stat.c,v 1.9 2005/04/11 08:19:07 otto Exp $"; #endif #include <sys/types.h> @@ -888,7 +888,7 @@ format1(const struct stat *st, if (l >= blen) return (l); for (; prec > 9 && l < blen; prec--, l++) - (void)strlcat(buf, "0", sizeof(lfmt)); + (void)strlcat(buf, "0", blen); return (l); } |