aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-sorted-variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index 7ea2eac04b..8c7e49cbbd 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -155,7 +155,7 @@ etsv_add (ETableSubsetVariable *etssv,
i = 0;
while (etsv_compare(etsv, etss->map_table[i], row) < 0)
i++;
- memmove(etss->map_table + i + 1, etss->map_table + i, etss->n_map - i);
+ memmove(etss->map_table + i + 1, etss->map_table + i, (etss->n_map - i) * sizeof(int));
}
etss->map_table[i] = row;
etss->n_map++;