From: Laszlo Peter Date: Wed, 23 Jan 2002 19:38:24 +0000 (+0000) Subject: return 1 more for the trailing \0 when using vsnprintf. (#69474) X-Git-Tag: GLIB_1_3_13~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98a36f8237a301d02f9b5bba7e0564e197236d10;p=platform%2Fupstream%2Fglib.git return 1 more for the trailing \0 when using vsnprintf. (#69474) 2002-01-23 Laszlo Peter * glib/gmessages.c (g_printf_string_upper_bound): return 1 more for the trailing \0 when using vsnprintf. (#69474) --- diff --git a/ChangeLog b/ChangeLog index 4d7b946..5ee3412 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4d7b946..5ee3412 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2002-01-23 Laszlo Peter + + * glib/gmessages.c (g_printf_string_upper_bound): return 1 more + for the trailing '\0' when using vsnprintf. (#69474) + 2002-01-23 Tor Lillqvist * glib/gconvert.c: (strdup_len): Not used on Windows, don't even diff --git a/glib/gmessages.c b/glib/gmessages.c index a3377ed..c8707ed 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -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