diff options
-rw-r--r-- | src/md5sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index 1a9ebab14..d37a06def 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -575,7 +575,7 @@ main (int argc, char **argv) case 1: /* --string */ { if (string == NULL) - string = xmalloc ((argc - 1) * sizeof (char *)); + string = xnmalloc (argc - 1, sizeof *string); if (optarg == NULL) optarg = ""; |