ASCII->POLY: use malloc instead of calloc

This commit is contained in:
hasufell 2014-05-28 19:42:08 +02:00
parent 0c9e53b5fb
commit f17b3fd6d0
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 2 additions and 1 deletions

View File

@ -126,10 +126,11 @@ get_bin_arr_to_ascii(char *binary_rep)
i++; /* amount of real integers */
}
int_string = ntru_calloc(1, CHAR_SIZE * (i + 1));
int_string = ntru_malloc(CHAR_SIZE * (i + 1));
for (uint32_t j = 0; j < i; j++)
int_string[j] = (char) int_arr[j];
int_string[i] = '\0';
free(int_arr);