diff options
Diffstat (limited to 'sysutils/genimage/files/patch-image-vfat.c')
-rw-r--r-- | sysutils/genimage/files/patch-image-vfat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/genimage/files/patch-image-vfat.c b/sysutils/genimage/files/patch-image-vfat.c new file mode 100644 index 000000000000..e3d524cd9e24 --- /dev/null +++ b/sysutils/genimage/files/patch-image-vfat.c @@ -0,0 +1,11 @@ +--- image-vfat.c.orig 2023-01-06 18:01:33 UTC ++++ image-vfat.c +@@ -47,7 +47,7 @@ static int vfat_generate(struct image *image) + struct image *child = image_get(part->image); + const char *file = imageoutfile(child); + const char *target = part->name; +- char *path = strdupa(target); ++ char *path = strdup(target); // XXX causes memory leak + char *next = path; + + while ((next = strchr(next, '/')) != NULL) { |