From fb887c5ee72ef41930fb588088e4c516ed9e3e16 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 2 Dec 2004 01:06:17 +0000 Subject: [PATCH] actually enable (and fix up the length test). Wed Dec 1 17:04:37 2004 Manish Singh * glib/gstring.h (g_string_append_c_inline): actually enable (and fix up the length test). --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gstring.h | 2 +- 6 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ff837f53..bba99eca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Dec 1 17:04:37 2004 Manish Singh + + * glib/gstring.h (g_string_append_c_inline): actually enable (and + fix up the length test). + 2004-11-30 Tor Lillqvist * glib/Makefile.am (glib.def): gcc -E complains "linker input file diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ff837f53..bba99eca 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Wed Dec 1 17:04:37 2004 Manish Singh + + * glib/gstring.h (g_string_append_c_inline): actually enable (and + fix up the length test). + 2004-11-30 Tor Lillqvist * glib/Makefile.am (glib.def): gcc -E complains "linker input file diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index ff837f53..bba99eca 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Wed Dec 1 17:04:37 2004 Manish Singh + + * glib/gstring.h (g_string_append_c_inline): actually enable (and + fix up the length test). + 2004-11-30 Tor Lillqvist * glib/Makefile.am (glib.def): gcc -E complains "linker input file diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index ff837f53..bba99eca 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Wed Dec 1 17:04:37 2004 Manish Singh + + * glib/gstring.h (g_string_append_c_inline): actually enable (and + fix up the length test). + 2004-11-30 Tor Lillqvist * glib/Makefile.am (glib.def): gcc -E complains "linker input file diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index ff837f53..bba99eca 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Wed Dec 1 17:04:37 2004 Manish Singh + + * glib/gstring.h (g_string_append_c_inline): actually enable (and + fix up the length test). + 2004-11-30 Tor Lillqvist * glib/Makefile.am (glib.def): gcc -E complains "linker input file diff --git a/glib/gstring.h b/glib/gstring.h index 7357291e..ea67dc91 100644 --- a/glib/gstring.h +++ b/glib/gstring.h @@ -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; -- 2.34.1