diff options
-rw-r--r-- | tools/md5table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/md5table.c b/tools/md5table.c index b69f3957cd..6823607b27 100644 --- a/tools/md5table.c +++ b/tools/md5table.c @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) const int entrySize = 256; int numEntries = 0, maxEntries = 1; - char *entriesBuffer = malloc(maxEntries * entrySize); + char *entriesBuffer = (char *)malloc(maxEntries * entrySize); typedef enum { kCPPOutput, @@ -294,7 +294,7 @@ int main(int argc, char *argv[]) } else if (entry.md5) { if (numEntries >= maxEntries) { maxEntries *= 2; - entriesBuffer = realloc(entriesBuffer, maxEntries * entrySize); + entriesBuffer = (char *)realloc(entriesBuffer, maxEntries * entrySize); } if (0 == strcmp(entry.variant, "-")) entry.variant = ""; |