Fix a small overallocation of memory.

This commit is contained in:
JEHoctor 2018-07-23 13:43:27 -04:00 committed by GitHub
parent f6d8617360
commit 86622fbd62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,7 +224,7 @@ image **load_alphabet()
{
int i, j;
const int nsize = 8;
image **alphabets = calloc(nsize, sizeof(image));
image **alphabets = calloc(nsize, sizeof(image*));
for(j = 0; j < nsize; ++j){
alphabets[j] = calloc(128, sizeof(image));
for(i = 32; i < 127; ++i){