ASCII->POLY: fix array size

This commit is contained in:
hasufell 2014-05-25 20:48:43 +02:00
parent 30b917b3be
commit 1a1f610d38
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ fmpz_poly_t **ascii_to_poly(char *to_poly, ntru_context *ctx)
uint32_t i = 0,
polyc = 0;
char *cur = to_poly;
size_t out_size = sizeof(char) * (strlen(to_poly) * 90 + 1);
size_t out_size = sizeof(char) * (strlen(to_poly) * 8 + 1);
char *out = ntru_malloc(out_size);
fmpz_poly_t **poly_array;