asprintf and snprintf support

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2009-12-29 10:04:06 +01:00
1 parent c181849b95
commit 8b442f3f4c
60 files changed
+396 -345

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ grub_cmd_read (grub_extcmd_t cmd, int argc, char **argv)
if (cmd->state[0].set)
{
grub_sprintf (buf, "%x", value);
grub_snprintf (buf, sizeof (buf), "%x", value);
grub_env_set (cmd->state[0].arg, buf);
}
else