summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kvm_mkdb/nlist.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-06-30 16:00:03 +0000
committermillert <millert@openbsd.org>2000-06-30 16:00:03 +0000
commitb638aa94715d7c4b461552b23f350ea53e1afd5a (patch)
treeaa7fbc4972a0b2e67a2a10a222aefffd0c85c9a5 /usr.sbin/kvm_mkdb/nlist.c
parentMy previous two attempts at fixing the "scrolling region" problem were wrong. (diff)
downloadwireguard-openbsd-b638aa94715d7c4b461552b23f350ea53e1afd5a.tar.xz
wireguard-openbsd-b638aa94715d7c4b461552b23f350ea53e1afd5a.zip
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
Diffstat (limited to 'usr.sbin/kvm_mkdb/nlist.c')
-rw-r--r--usr.sbin/kvm_mkdb/nlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/kvm_mkdb/nlist.c b/usr.sbin/kvm_mkdb/nlist.c
index 3227173cdcb..36091a46826 100644
--- a/usr.sbin/kvm_mkdb/nlist.c
+++ b/usr.sbin/kvm_mkdb/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.18 1999/03/24 05:25:57 millert Exp $ */
+/* $OpenBSD: nlist.c,v 1.19 2000/06/30 16:00:25 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "from: @(#)nlist.c 8.1 (Berkeley) 6/6/93";
#else
-static char *rcsid = "$OpenBSD: nlist.c,v 1.18 1999/03/24 05:25:57 millert Exp $";
+static char *rcsid = "$OpenBSD: nlist.c,v 1.19 2000/06/30 16:00:25 millert Exp $";
#endif
#endif /* not lint */
@@ -393,7 +393,7 @@ __elf_knlist(fd, db)
if (feof(fp))
fmterr = "corrupted symbol table";
else
- warn(kfile);
+ warn("%s", kfile);
return (-1);
}
if (!sbuf.st_name)