Commit fb887c5e authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

actually enable (and fix up the length test).

Wed Dec  1 17:04:37 2004  Manish Singh  <yosh@gimp.org>

        * glib/gstring.h (g_string_append_c_inline): actually enable (and
        fix up the length test).
parent 82e79440
Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
* glib/gstring.h (g_string_append_c_inline): actually enable (and
fix up the length test).
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def): gcc -E complains "linker input file
......
Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
* glib/gstring.h (g_string_append_c_inline): actually enable (and
fix up the length test).
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def): gcc -E complains "linker input file
......
Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
* glib/gstring.h (g_string_append_c_inline): actually enable (and
fix up the length test).
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def): gcc -E complains "linker input file
......
Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
* glib/gstring.h (g_string_append_c_inline): actually enable (and
fix up the length test).
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def): gcc -E complains "linker input file
......
Wed Dec 1 17:04:37 2004 Manish Singh <yosh@gimp.org>
* glib/gstring.h (g_string_append_c_inline): actually enable (and
fix up the length test).
2004-11-30 Tor Lillqvist <tml@iki.fi>
* glib/Makefile.am (glib.def): gcc -E complains "linker input file
......
......@@ -122,7 +122,7 @@ static inline GString*
g_string_append_c_inline (GString *gstring,
gchar c)
{
if (gstring->len < gstring->allocated_len && 0)
if (gstring->len + 1 < gstring->allocated_len)
{
gstring->str[gstring->len++] = c;
gstring->str[gstring->len] = 0;
......
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