diff options
author | dholland <dholland@NetBSD.org> | 2008-02-20 04:10:01 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-20 04:10:01 +0000 |
commit | 8859a2ed7b03bcd09b5d3ee8fa7c7c142fcab86a (patch) | |
tree | a7fdf6fbc23bb5767a380e786b493807a3eabebc /monop | |
parent | 2c254e61cff0bb1c6c7401a41a929d6222944509 (diff) | |
download | bsdgames-darwin-8859a2ed7b03bcd09b5d3ee8fa7c7c142fcab86a.tar.gz bsdgames-darwin-8859a2ed7b03bcd09b5d3ee8fa7c7c142fcab86a.tar.zst bsdgames-darwin-8859a2ed7b03bcd09b5d3ee8fa7c7c142fcab86a.zip |
Don't misuse random strings as printf formats, even where it's harmless.
Found by diffing against OpenBSD.
Diffstat (limited to 'monop')
-rw-r--r-- | monop/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monop/misc.c b/monop/misc.c index 935dcc52..3de75b53 100644 --- a/monop/misc.c +++ b/monop/misc.c @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.16 2008/02/19 09:34:40 dholland Exp $ */ +/* $NetBSD: misc.c,v 1.17 2008/02/20 04:10:01 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: misc.c,v 1.16 2008/02/19 09:34:40 dholland Exp $"); +__RCSID("$NetBSD: misc.c,v 1.17 2008/02/20 04:10:01 dholland Exp $"); #endif #endif /* not lint */ @@ -101,7 +101,7 @@ get_int(prompt) for (;;) { inter: - printf(prompt); + printf("%s", prompt); num = 0; for (sp = buf; (c=getchar()) != '\n'; *sp++ = c) if (c == -1) /* check for interrupted system call */ |