From: Cody Russell Date: Wed, 22 Aug 2007 19:31:27 +0000 (+0000) Subject: Update fix for #469051 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=2ffcf767a279f0f6b89b0bac9ae2177bb030aeb4;p=dana%2Fcg-glib.git Update fix for #469051 svn path=/trunk/; revision=5717 --- diff --git a/ChangeLog b/ChangeLog index f8d3f935..78a305d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2007-08-22 Cody Russell * glib/gprintf.c: Document g_snprintf to return "bytes" rather - than "characters". + than "characters". (#469051) 2007-08-20 Behdad Esfahbod diff --git a/glib/gprintf.c b/glib/gprintf.c index 4bd47a34..6cbb214d 100644 --- a/glib/gprintf.c +++ b/glib/gprintf.c @@ -40,7 +40,7 @@ * An implementation of the standard printf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -68,7 +68,7 @@ g_printf (gchar const *format, * An implementation of the standard fprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -99,7 +99,7 @@ g_fprintf (FILE *file, * An implementation of the standard sprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -121,7 +121,7 @@ g_sprintf (gchar *string, /** * g_snprintf: * @string: the buffer to hold the output. - * @n: the maximum number of characters to produce (including the + * @n: the maximum number of bytes to produce (including the * terminating nul character). * @format: a standard printf() format string, but notice * string precision pitfalls. @@ -173,7 +173,7 @@ g_snprintf (gchar *string, * An implementation of the standard vprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -196,7 +196,7 @@ g_vprintf (gchar const *format, * An implementation of the standard fprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -220,7 +220,7 @@ g_vfprintf (FILE *file, * An implementation of the standard vsprintf() function which supports * positional parameters, as specified in the Single Unix Specification. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.2 **/ @@ -238,7 +238,7 @@ g_vsprintf (gchar *string, /** * g_vsnprintf: * @string: the buffer to hold the output. - * @n: the maximum number of characters to produce (including the + * @n: the maximum number of bytes to produce (including the * terminating nul character). * @format: a standard printf() format string, but notice * string precision pitfalls. @@ -262,7 +262,7 @@ g_vsprintf (gchar *string, * The format string may contain positional parameters, as specified in * the Single Unix Specification. * - * Returns: the number of characters which would be produced if the buffer + * Returns: the number of bytes which would be produced if the buffer * was large enough. */ gint @@ -290,7 +290,7 @@ g_vsnprintf (gchar *string, * string to hold the output, instead of putting the output in a buffer * you allocate in advance. * - * Returns: the number of characters printed. + * Returns: the number of bytes printed. * * Since: 2.4 **/