From 84558ae2c9287611689c175b7f92e4066f5d0e09 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sun, 24 Feb 2013 18:01:15 +0000 Subject: [PATCH] [Fix] Small correction in a memset from packfile --- src/pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pack.c b/src/pack.c index 2e89047..28f41ad 100644 --- a/src/pack.c +++ b/src/pack.c @@ -350,7 +350,7 @@ void* pack_readfile(const char* packfile, const char* filename, uint32_t* filesi return NULL; } DEBUG("Read %d bytes from '%s'", bytes, filename); - memset(buf+size, '\0', 1); // Append size '\0' for it to validate as a string. + memset(buf+size, 0, 1); // Append size '\0' for it to validate as a string. // Check the md5. md5_state_t md5;