From cbb5e7af5f783d9a071247191336ebbe01c4feda Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Mon, 10 Apr 2000 05:30:24 +0000 Subject: [PATCH] A stringified double can be longer than 32 chars - fix space calculation * gstrfuncs.c: A stringified double can be longer than 32 chars - fix space calculation routine to 'double' the max amount of space a double & long double can take. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gstrfuncs.c | 2 +- gstrfuncs.c | 2 +- 10 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b64a944e6..b19664888 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b64a944e6..b19664888 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2000-04-10 Elliot Lee + * gstrfuncs.c: A stringified double can be longer than 32 chars - + fix space calculation routine to 'double' the max amount of space + a double & long double can take. + Fri Mar 24 03:34:02 2000 Tim Janik * glib.h: put a comment for the g_datalist_ and g_dataset_ API, that diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index bc09dd9dc..5bac6bf73 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -897,7 +897,7 @@ g_printf_string_upper_bound (const gchar* format, else #endif /* HAVE_LONG_DOUBLE */ (void) va_arg (args, double); - len += extra_long ? 64 : 32; + len += extra_long ? 128 : 64; done = TRUE; break; case 'c': diff --git a/gstrfuncs.c b/gstrfuncs.c index bc09dd9dc..5bac6bf73 100644 --- a/gstrfuncs.c +++ b/gstrfuncs.c @@ -897,7 +897,7 @@ g_printf_string_upper_bound (const gchar* format, else #endif /* HAVE_LONG_DOUBLE */ (void) va_arg (args, double); - len += extra_long ? 64 : 32; + len += extra_long ? 128 : 64; done = TRUE; break; case 'c':