mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
asprintf and snprintf support
This commit is contained in:
1 parent
c181849b95
commit
8b442f3f4c
60 files changed
+396
-345
No files matched your search
+2
-3
@@ -63,11 +63,10 @@ grub_efi_set_prefix (void)
|
||||
if (p)
|
||||
*p = '\0';
|
||||
|
||||
prefix = grub_malloc (1 + grub_strlen (device) + 1
|
||||
+ grub_strlen (file) + 1);
|
||||
prefix = grub_asprintf ("(%s)%s", device, file);
|
||||
if (prefix)
|
||||
{
|
||||
grub_sprintf (prefix, "(%s)%s", device, file);
|
||||
|
||||
grub_env_set ("prefix", prefix);
|
||||
grub_free (prefix);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user