Fixed size in g_memmove, reported by Alexander Larsson

1998-12-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* garray.c (g_ptr_array_remove_index): Fixed size in g_memmove,
	reported by Alexander Larsson <alla@lysator.liu.se>.

	* gmem.c: Fixed bug, that made compile fail for -DENABLE_MEM_PROFILE.
This commit is contained in:
Sebastian Wilhelmi
1998-12-17 08:02:38 +00:00
committed by Sebastian Wilhelmi
parent d9fca59e2a
commit c3c1b2edc0
12 changed files with 70 additions and 14 deletions

View File

@@ -338,7 +338,7 @@ g_ptr_array_remove_index (GPtrArray* farray,
if (index != array->len - 1)
g_memmove (array->pdata + index, array->pdata + index + 1,
array->len - index - 1);
sizeof (gpointer) * (array->len - index - 1));
array->pdata[array->len - 1] = NULL;