* grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
was intended.
This commit is contained in:
parent
76a2a43011
commit
17b4355943
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
|
||||||
|
was intended.
|
||||||
|
|
||||||
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/crypto.c: Don't discard const attribute.
|
* grub-core/lib/crypto.c: Don't discard const attribute.
|
||||||
|
|
|
@ -415,7 +415,7 @@ grub_cmd_dhcpopt (struct grub_command *cmd __attribute__ ((unused)),
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char valn[64];
|
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_env_set (args[0], valn);
|
||||||
}
|
}
|
||||||
return GRUB_ERR_NONE;
|
return GRUB_ERR_NONE;
|
||||||
|
|
Loading…
Reference in a new issue