replace malloc() with calloc() calls

This commit is contained in:
Michael Rash
2014-03-15 22:02:57 -04:00
parent 2556433bba
commit 5baf8a3fa9
12 changed files with 32 additions and 34 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ append_b64(char* tbuf, char *str)
if(len >= MAX_SPA_ENCODED_MSG_SIZE)
return(FKO_ERROR_INVALID_DATA_ENCODE_MESSAGE_TOOBIG);
bs = malloc(((len/3)*4)+8);
bs = calloc(1, ((len/3)*4)+8);
if(bs == NULL)
return(FKO_ERROR_MEMORY_ALLOCATION);