diff options
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 6a7e9299b36..bdc92f88e8e 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1820,7 +1820,7 @@ static const struct standard_args standard_args[] = static void sort_args (int argc, char **argv) { - char **new = xmalloc (sizeof (char *) * argc); + char **new = xmalloc (argc * sizeof *new); /* For each element of argv, the corresponding element of options is: 0 for an option that takes no arguments, |
