diff --git a/ChangeLog b/ChangeLog index 8c6c617e6..5fa10f213 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-12-21 Vladimir Serbinenko + + * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it + was intended. + 2013-12-21 Vladimir Serbinenko * grub-core/lib/crypto.c: Don't discard const attribute. diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c index ed159418a..c14e9de57 100644 --- a/grub-core/net/bootp.c +++ b/grub-core/net/bootp.c @@ -415,7 +415,7 @@ grub_cmd_dhcpopt (struct grub_command *cmd __attribute__ ((unused)), else { char valn[64]; - grub_printf (valn, sizeof (valn), "%lld\n", (unsigned long long) val); + grub_snprintf (valn, sizeof (valn), "%lld\n", (unsigned long long) val); return grub_env_set (args[0], valn); } return GRUB_ERR_NONE;