From 78789cf4a8e5c11b6508bd8203f04fce151250fa Mon Sep 17 00:00:00 2001 From: avg Date: Tue, 11 Sep 2012 06:18:36 +0000 Subject: boot: file_loadraw should strdup name argument ... the same way it's done for type argument. MFC after: 2 weeks --- sys/boot/common/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/common/module.c b/sys/boot/common/module.c index 12ffe6e..fed788d 100644 --- a/sys/boot/common/module.c +++ b/sys/boot/common/module.c @@ -396,7 +396,7 @@ file_loadraw(char *type, char *name) /* Looks OK so far; create & populate control structure */ fp = file_alloc(); - fp->f_name = name; + fp->f_name = strdup(name); fp->f_type = strdup(type); fp->f_args = NULL; fp->f_metadata = NULL; -- cgit v1.1