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).
This commit is contained in:
Manish Singh 2004-12-02 01:06:17 +00:00 committed by Manish Singh
parent 82e7944020
commit fb887c5ee7
6 changed files with 26 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View 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;