diff options
author | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-02-09 08:24:04 -0500 |
---|---|---|
committer | Dave Heller <hellerda@linux.vnet.ibm.com> | 2018-02-09 08:24:04 -0500 |
commit | bfa902bfe26bc5bb4b1e12f6baaca80397f64730 (patch) | |
tree | 6a9e4f902288a73163a164e438535bfb1d23b917 | |
parent | 388c49a3f397ce5faf072361862cd18180e2b701 (diff) | |
download | sb-signing-utils-bfa902bfe26bc5bb4b1e12f6baaca80397f64730.tar.gz sb-signing-utils-bfa902bfe26bc5bb4b1e12f6baaca80397f64730.zip |
Fix bad malloc from commit 549bd6b
Signed-off-by: Dave Heller <hellerda@linux.vnet.ibm.com>
-rw-r--r-- | create-container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/create-container.c b/create-container.c index fb045c4..08e35c2 100644 --- a/create-container.c +++ b/create-container.c @@ -249,7 +249,7 @@ void writeHdr(void *hdr, const char *outFile, int hdr_type) debug_msg("Wrote %d bytes to %s", hdr_sz, outFile); if (md) { - char *fn = malloc(strlen(outFile) + 7); + char *fn = malloc(strlen(outFile) + 8); // Write the message digest in binary. sprintf(fn, "%s.md.bin", outFile); |