return 1 more for the trailing \0 when using vsnprintf. (#69474)
authorLaszlo Peter <laca@ireland.sun.com>
Wed, 23 Jan 2002 19:38:24 +0000 (19:38 +0000)
committerLászló PÉTER <laca@src.gnome.org>
Wed, 23 Jan 2002 19:38:24 +0000 (19:38 +0000)
2002-01-23  Laszlo Peter  <laca@ireland.sun.com>

* glib/gmessages.c (g_printf_string_upper_bound): return 1 more
        for the trailing \0 when using vsnprintf. (#69474)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmessages.c

index 4d7b946..5ee3412 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index 4d7b946..5ee3412 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-23  Laszlo Peter  <laca@ireland.sun.com>
+
+       * glib/gmessages.c (g_printf_string_upper_bound): return 1 more
+       for the trailing '\0' when using vsnprintf. (#69474)
+
 2002-01-23  Tor Lillqvist  <tml@iki.fi>
 
        * glib/gconvert.c: (strdup_len): Not used on Windows, don't even
index a3377ed..c8707ed 100644 (file)
@@ -1181,7 +1181,7 @@ g_printf_string_upper_bound (const gchar *format,
 {
 #if HAVE_C99_VSNPRINTF
   gchar c;
-  return vsnprintf (&c, 1, format, args);
+  return vsnprintf (&c, 1, format, args) + 1;
 #else
   return printf_string_upper_bound (format, TRUE, args);
 #endif