Commit 252e7dfa authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Pass the correct size to realloc(). Fixes

2005-06-10  Federico Mena Quintero  <federico@ximian.com>

	* xdgmime.c (xdg_mime_init_from_directory): Pass the correct size
	to realloc().  Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.
parent a4ed2092
2005-06-10 Federico Mena Quintero <federico@ximian.com>
* xdgmime.c (xdg_mime_init_from_directory): Pass the correct size
to realloc(). Fixes https://bugs.freedesktop.org/show_bug.cgi?id=3506.
2005-06-09 Matthias Clasen <mclasen@redhat.com>
* xdgmimemagic.c: Don't declare errno, including errno.h
......
......@@ -140,7 +140,7 @@ xdg_mime_init_from_directory (const char *directory)
list->next = dir_time_list;
dir_time_list = list;
caches = realloc (caches, n_caches + 1);
caches = realloc (caches, sizeof (XdgMimeCache *) * (n_caches + 1));
caches[n_caches] = cache;
n_caches++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment