summaryrefslogtreecommitdiffstats
path: root/src/spell.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.c')
-rw-r--r--src/spell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spell.c b/src/spell.c
index fa5be8be10..1e14fabfff 100644
--- a/src/spell.c
+++ b/src/spell.c
@@ -7820,8 +7820,7 @@ spell_edit_score(
/* We use "cnt" as an array: CNT(badword_idx, goodword_idx). */
#define CNT(a, b) cnt[(a) + (b) * (badlen + 1)]
- cnt = (int *)lalloc((long_u)(sizeof(int) * (badlen + 1) * (goodlen + 1)),
- TRUE);
+ cnt = (int *)alloc(sizeof(int) * (badlen + 1) * (goodlen + 1));
if (cnt == NULL)
return 0; /* out of memory */