From: cjwatson Date: Fri, 28 Aug 2009 13:25:10 +0000 (+0000) Subject: 2009-08-28 Colin Watson X-Git-Tag: 1.98~585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a57da43f0dda6c27fe208e65dd59bec5ed3907a4;p=thirdparty%2Fgrub.git 2009-08-28 Colin Watson * normal/cmdline.c (grub_cmdline_get): Supply a format string as the first argument to grub_printf. --- diff --git a/ChangeLog b/ChangeLog index 691273fc6..b32de1b10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-28 Colin Watson + + * normal/cmdline.c (grub_cmdline_get): Supply a format string as + the first argument to grub_printf. + 2009-08-28 Colin Watson 2009-08-28 Robert Millan diff --git a/normal/cmdline.c b/normal/cmdline.c index 56f892121..7a5b6ec84 100644 --- a/normal/cmdline.c +++ b/normal/cmdline.c @@ -273,7 +273,7 @@ grub_cmdline_get (const char *prompt, char cmdline[], unsigned max_len, if ((grub_getxy () >> 8) != 0) grub_putchar ('\n'); - grub_printf (prompt); + grub_printf ("%s", prompt); xpos = plen; ystart = ypos = (grub_getxy () & 0xFF);