diff options
author | Erik Troan <ewt@redhat.com> | 1999-08-11 15:05:55 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-08-11 15:05:55 +0000 |
commit | a392e8360c130ce7ba7d4196f0e757051e2ba394 (patch) | |
tree | 7a5abbd620639d39b7f680430d0a2fcb36dbb428 /loader | |
parent | cdef314eea696c41da7b4e69cdb20fa71f48e75d (diff) | |
download | anaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.tar.gz anaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.tar.xz anaconda-a392e8360c130ce7ba7d4196f0e757051e2ba394.zip |
added missing strdup()
Diffstat (limited to 'loader')
-rw-r--r-- | loader/modules.c | 2 |
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; |