asprintf and snprintf support
This commit is contained in:
parent
c181849b95
commit
8b442f3f4c
60 changed files with 396 additions and 345 deletions
|
@ -78,7 +78,7 @@ grub_menu_set_timeout (int timeout)
|
|||
{
|
||||
char buf[16];
|
||||
|
||||
grub_sprintf (buf, "%d", timeout);
|
||||
grub_snprintf (buf, sizeof (buf), "%d", timeout);
|
||||
grub_env_set ("timeout", buf);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue