diff options
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c index 7e43596a95..ec8d3db296 100644 --- a/src/spell.c +++ b/src/spell.c @@ -3657,7 +3657,7 @@ spell_read_tree ( *bytsp = bp; /* Allocate the index array. */ - ip = (idx_T *)lalloc_clear((long_u)(len * sizeof(int)), TRUE); + ip = xcalloc(len, sizeof(*ip)); *idxsp = ip; /* Recursively read the tree and store it in the array. */ |