diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-09-30 16:37:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-09-30 16:37:13 +0000 |
commit | 5f18940d9b8fd25023d01187dfd466808c98f163 (patch) | |
tree | c0718a3b3a0c9ff1d27b63707bcd6d9412d40c3d /usr.bin/find | |
parent | a705f0d58783ea80e94f73567e97b96b87aaa6bd (diff) |
Now that dprintf(3) uses format string annotation checking, a sizeof()
requires (int) for a '*' modifier
ok millert
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/find/misc.c b/usr.bin/find/misc.c index 69a4434bd4e..b55890b93d8 100644 --- a/usr.bin/find/misc.c +++ b/usr.bin/find/misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.16 2017/12/08 17:04:15 deraadt Exp $ */ +/* $OpenBSD: misc.c,v 1.17 2020/09/30 16:37:12 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -151,7 +151,7 @@ show_path(int signo) if (entry != NULL) { dprintf(STDERR_FILENO, "find path: %*s\n", - entry->fts_pathlen, entry->fts_path); + (int)entry->fts_pathlen, entry->fts_path); errno = save_errno; } } |