From: Ryan Lortie Date: Sat, 30 Jan 2010 17:30:53 +0000 (-0500) Subject: g_strlcpy doc: small fixup X-Git-Tag: 2.23.3~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b6c8a56059657073f56dbc2a9d04acde2588349;p=platform%2Fupstream%2Fglib.git g_strlcpy doc: small fixup prevent the from getting sucked in as part of the Returns: --- diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 85f653d..8e4b226 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -1657,14 +1657,14 @@ g_strlcpy (gchar *dest, * This function does NOT allocate memory. * This always NUL terminates (unless siz == 0 or there were no NUL characters * in the dest_size characters of dest to start with). - * Returns size of attempted result, which is - * MIN (dest_size, strlen (original dest)) + strlen (src), - * so if retval >= dest_size, truncation occurred. * * Caveat: this is supposedly a more secure alternative to * strcat() or strncat(), but for real security g_strconcat() is harder * to mess up. * + * Returns size of attempted result, which is + * MIN (dest_size, strlen (original dest)) + strlen (src), + * so if retval >= dest_size, truncation occurred. */ gsize g_strlcat (gchar *dest,