Skip to content
Snippets Groups Projects
Commit 2084bcde authored by James Hoctor's avatar James Hoctor
Browse files

Fix a small overallocation of memory.

parent 9934eb72
Branches master
No related tags found
No related merge requests found
...@@ -223,7 +223,7 @@ image **load_alphabet() ...@@ -223,7 +223,7 @@ image **load_alphabet()
{ {
int i, j; int i, j;
const int nsize = 8; const int nsize = 8;
image **alphabets = calloc(nsize, sizeof(image)); image **alphabets = calloc(nsize, sizeof(image*));
for(j = 0; j < nsize; ++j){ for(j = 0; j < nsize; ++j){
alphabets[j] = calloc(128, sizeof(image)); alphabets[j] = calloc(128, sizeof(image));
for(i = 32; i < 127; ++i){ for(i = 32; i < 127; ++i){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment