From: Kern Sibbald Date: Fri, 24 Jul 2009 18:55:29 +0000 (+0000) Subject: Add format to a fprintf X-Git-Tag: Release-5.0.0~463 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63a35ef57ef7b15b7b9d00a9cb5d767887b552ca;p=bacula%2Fbacula Add format to a fprintf git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@9099 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index be0226117f..8638d2b7cc 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -2628,7 +2628,8 @@ get_cmd(const char *prompt) { int i = 0; int ch; - fprintf(stdout, prompt); + + fprintf(stdout, "%s", prompt); /* We really should turn off echoing and pretty this * up a bit. @@ -2639,8 +2640,9 @@ get_cmd(const char *prompt) strip_trailing_junk(cmd); return 1; } else if (ch == 4 || ch == 0xd3 || ch == 0x8) { - if (i > 0) + if (i > 0) { cmd[--i] = 0; + } continue; } diff --git a/bacula/technotes b/bacula/technotes index b8bb6a4b5d..d627070125 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 24Jul09 +kes Add format to a fprintf kes Attempt to fix SQLite seg fault problem 23Jul09 kes Fix int/int32_t problem in accurate_add_file