projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
*** empty log message ***
[binutils-gdb.git]
/
gdb
/
fork-child.c
diff --git
a/gdb/fork-child.c
b/gdb/fork-child.c
index 98d4935e55cc6b748635190e5d6b00443da0792a..2b085ffe6aef8b9ed275c54ad1044f0b21b00d72 100644
(file)
--- a/
gdb/fork-child.c
+++ b/
gdb/fork-child.c
@@
-178,6
+178,7
@@
fork_inferior (char *exec_file_arg, char *allargs, char **env,
assuming that every other character is a separate
argument. */
int argc = (strlen (allargs) + 1) / 2 + 2;
+
argv = (char **) xmalloc (argc * sizeof (*argv));
argv[0] = exec_file;
breakup_args (allargs, &argv[1]);