diff options
author | kris <kris@FreeBSD.org> | 2000-07-10 06:02:13 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2000-07-10 06:02:13 +0000 |
commit | 805d9e79e252a1d071126356dbfbd20dbf975720 (patch) | |
tree | fd9dd3a7c75361992326b0b703d1fadb4323a1b4 /usr.bin | |
parent | 5fae984c0b76ef257587262bbd9a1e912212b1c0 (diff) | |
download | FreeBSD-src-805d9e79e252a1d071126356dbfbd20dbf975720.zip FreeBSD-src-805d9e79e252a1d071126356dbfbd20dbf975720.tar.gz |
Don't call printf with no format string.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ee/ee.c | 2 | ||||
-rw-r--r-- | usr.bin/jot/jot.c | 2 | ||||
-rw-r--r-- | usr.bin/last/last.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ee/ee.c b/usr.bin/ee/ee.c index 4f2da7d..94be3d7 100644 --- a/usr.bin/ee/ee.c +++ b/usr.bin/ee/ee.c @@ -3096,7 +3096,7 @@ char *string; /* string containing user command */ } if (shell_fork) { - printf(continue_msg); + printf("%s", continue_msg); fflush(stdout); while ((in = getchar()) != '\n') ; diff --git a/usr.bin/jot/jot.c b/usr.bin/jot/jot.c index a15b83f..e415aba 100644 --- a/usr.bin/jot/jot.c +++ b/usr.bin/jot/jot.c @@ -315,7 +315,7 @@ putdata(x, notlast) { if (boring) - printf(format); + printf("%s", format); else if (longdata && nosign) { if (x <= (double)ULONG_MAX && x >= (double)0) printf(format, (unsigned long)x); diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c index c87f696..5efd9e8 100644 --- a/usr.bin/last/last.c +++ b/usr.bin/last/last.c @@ -323,7 +323,7 @@ wtmp() } tm = localtime(&buf[0].ut_time); (void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm); - printf(ct); + printf("%s", ct); } /* |