From 8859a2ed7b03bcd09b5d3ee8fa7c7c142fcab86a Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 20 Feb 2008 04:10:01 +0000 Subject: Don't misuse random strings as printf formats, even where it's harmless. Found by diffing against OpenBSD. --- monop/misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'monop/misc.c') 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 */ -- cgit v1.2.3-56-ge451