diff options
Diffstat (limited to '')
-rw-r--r-- | cmdline_sha3sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline_sha3sum.c b/cmdline_sha3sum.c index 8fc33fd..7dc0757 100644 --- a/cmdline_sha3sum.c +++ b/cmdline_sha3sum.c @@ -32,7 +32,7 @@ fmtalgostr(const char *f, long int r, long int c, long int n, long int z) len = snprintf(NULL, 0, "%s[r=%li,c=%li,n=%li,z=%li]", f, r, c, n, z); if (len <= 0) abort(); - ret = emalloc((size_t)len); + ret = emalloc((size_t)len + 1U); p = stpcpy(ret, f); *p++ = '['; if (r) |