]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 12:35:28 +0000 (13:35 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 21 Dec 2013 12:35:28 +0000 (13:35 +0100)
was intended.

ChangeLog
grub-core/net/bootp.c

index 8c6c617e633093f24f805fa303f3ee1b5a1389d5..5fa10f2136dd94fc733bf80225f5b26a2a623fe2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/lib/crypto.c: Don't discard const attribute.
index ed159418a1f3cb9eddc5bac604edc2f3229ba5c9..c14e9de57a457165e79c09eab32fa88922a9d6e7 100644 (file)
@@ -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;