Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/pdisk fix non-literal format string
details: https://anonhg.NetBSD.org/src/rev/c85d51232dac
branches: trunk
changeset: 768731:c85d51232dac
user: christos <christos%NetBSD.org@localhost>
date: Thu Aug 25 16:51:48 2011 +0000
description:
fix non-literal format string
diffstat:
dist/pdisk/io.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (65 lines):
diff -r e6c082997b5a -r c85d51232dac dist/pdisk/io.c
--- a/dist/pdisk/io.c Thu Aug 25 16:47:20 2011 +0000
+++ b/dist/pdisk/io.c Thu Aug 25 16:51:48 2011 +0000
@@ -92,7 +92,6 @@
int my_getch(void);
void my_ungetch(int c);
-
//
// Routines
//
@@ -150,7 +149,7 @@
int c;
flush_to_newline(0);
- printf(prompt);
+ printf("%s", prompt);
for (;;) {
c = my_getch();
@@ -168,7 +167,7 @@
return 0;
} else {
flush_to_newline(0);
- printf(prompt);
+ printf("%s", prompt);
}
}
return -1;
@@ -181,7 +180,7 @@
int c;
if (promptBeforeGet) {
- printf(prompt);
+ printf("%s", prompt);
}
for (;;) {
c = my_getch();
@@ -191,7 +190,7 @@
} else if (c == ' ' || c == '\t') {
// skip blanks and tabs
} else if (c == '\n') {
- printf(prompt);
+ printf("%s", prompt);
} else {
*command = c;
return 1;
@@ -216,7 +215,7 @@
// skip blanks and tabs
} else if (c == '\n') {
if (default_value == kDefault) {
- printf(prompt);
+ printf("%s", prompt);
} else {
my_ungetch(c);
*number = default_value;
@@ -295,7 +294,7 @@
// skip blanks and tabs
} else if (c == '\n') {
if (reprompt) {
- printf(prompt);
+ printf("%s", prompt);
} else {
my_ungetch(c);
*string = NULL;
Home |
Main Index |
Thread Index |
Old Index