mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +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
@@ -90,10 +90,7 @@ grub_machine_set_prefix (void)
|
||||
}
|
||||
prefix = grub_ieee1275_encode_devname (bootpath);
|
||||
|
||||
path = grub_malloc (grub_strlen (grub_prefix)
|
||||
+ grub_strlen (prefix)
|
||||
+ 2);
|
||||
grub_sprintf(path, "%s%s", prefix, grub_prefix);
|
||||
path = grub_asprintf("%s%s", prefix, grub_prefix);
|
||||
|
||||
grub_strcpy (grub_prefix, path);
|
||||
|
||||
|
||||
Reference in new issue
Block a user