forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
a4ed2092df
commit
252e7dfa84
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-06-09 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* xdgmimemagic.c: Don't declare errno, including errno.h
|
* 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;
|
list->next = dir_time_list;
|
||||||
dir_time_list = list;
|
dir_time_list = list;
|
||||||
|
|
||||||
caches = realloc (caches, n_caches + 1);
|
caches = realloc (caches, sizeof (XdgMimeCache *) * (n_caches + 1));
|
||||||
caches[n_caches] = cache;
|
caches[n_caches] = cache;
|
||||||
n_caches++;
|
n_caches++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user