diff --git a/ChangeLog b/ChangeLog index 1e0d45127..87b0b1ac5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-24 Benjamin Otte + + * glib/gprintf.c (g_sprintf): Clarify the documentation + regarding overflows (wording by Jan Schmidt) + 2007-01-23 Roozbeh Pournader * README: Remove mention of no-longer-existing PATCH diff --git a/glib/gprintf.c b/glib/gprintf.c index e62e34c3f..7de0953a2 100644 --- a/glib/gprintf.c +++ b/glib/gprintf.c @@ -89,7 +89,9 @@ g_fprintf (FILE *file, /** * g_sprintf: - * @string: the buffer to hold the output. + * @string: A pointer to a memory buffer to contain the resulting string. It + * is up to the caller to ensure that the allocated buffer is large + * enough to hold the formatted result * @format: a standard printf() format string, but notice * string precision pitfalls. * @Varargs: the arguments to insert in the output.