summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expand.c b/src/expand.c
index 7813759cf..2488711de 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -229,7 +229,8 @@ add_tabstop (tabval)
if (tabval == -1)
return;
if (first_free_tab % TABLIST_BLOCK == 0)
- tab_list = (int *) xrealloc (tab_list, first_free_tab + TABLIST_BLOCK);
+ tab_list = (int *) xrealloc (tab_list, first_free_tab
+ + TABLIST_BLOCK * sizeof (tab_list[0]));
tab_list[first_free_tab++] = tabval;
}