Fix obvious reallocation bug in rarely or never hit code path (#118071,
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation bug in rarely or never hit code path (#118071, Tor Lillqvist)
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
|
||||||
|
bug in rarely or never hit code path (#118071,
|
||||||
|
Tor Lillqvist)
|
||||||
|
|
||||||
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
|
||||||
|
bug in rarely or never hit code path (#118071,
|
||||||
|
Tor Lillqvist)
|
||||||
|
|
||||||
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
|
||||||
|
bug in rarely or never hit code path (#118071,
|
||||||
|
Tor Lillqvist)
|
||||||
|
|
||||||
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
|
||||||
|
bug in rarely or never hit code path (#118071,
|
||||||
|
Tor Lillqvist)
|
||||||
|
|
||||||
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Fri Aug 1 16:44:51 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkfilesel.c (update_cmpl): Fix obvious reallocation
|
||||||
|
bug in rarely or never hit code path (#118071,
|
||||||
|
Tor Lillqvist)
|
||||||
|
|
||||||
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
Fri Aug 1 16:30:13 2003 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
* gdk/x11/gdkdrawable-x11.c (_gdk_x11_have_render):
|
||||||
|
@ -3727,10 +3727,10 @@ update_cmpl (PossibleCompletion *poss,
|
|||||||
|
|
||||||
if (cmpl_state->updated_text_alloc < cmpl_len + 1)
|
if (cmpl_state->updated_text_alloc < cmpl_len + 1)
|
||||||
{
|
{
|
||||||
|
cmpl_state->updated_text_alloc = 2*cmpl_len;
|
||||||
cmpl_state->updated_text =
|
cmpl_state->updated_text =
|
||||||
(gchar*)g_realloc (cmpl_state->updated_text,
|
(gchar*)g_realloc (cmpl_state->updated_text,
|
||||||
cmpl_state->updated_text_alloc);
|
cmpl_state->updated_text_alloc);
|
||||||
cmpl_state->updated_text_alloc = 2*cmpl_len;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmpl_state->updated_text_len < 0)
|
if (cmpl_state->updated_text_len < 0)
|
||||||
|
Reference in New Issue
Block a user