summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1999-08-11 15:05:55 +0000
committerErik Troan <ewt@redhat.com>1999-08-11 15:05:55 +0000
commita392e8360c130ce7ba7d4196f0e757051e2ba394 (patch)
tree7a5abbd620639d39b7f680430d0a2fcb36dbb428 /loader
parentcdef314eea696c41da7b4e69cdb20fa71f48e75d (diff)
downloadanaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.tar.gz
anaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.tar.xz
anaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.zip
added missing strdup()
Diffstat (limited to 'loader')
-rw-r--r--loader/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/modules.c b/loader/modules.c
index da4d26965..e8fdf1849 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -200,7 +200,7 @@ int mlLoadModule(char * modName, moduleList modLoaded,
for (i = 0, arg = args; *arg; arg++, i++);
newArgs = malloc(sizeof(*newArgs) * (i + 1));
for (i = 0, arg = args; *arg; arg++, i++)
- newArgs[i] = *arg;
+ newArgs[i] = strdup(*arg);
newArgs[i] = NULL;
} else {
newArgs = NULL;