From: Bruno Haible Date: Tue, 24 Feb 2009 11:34:41 +0000 (+0100) Subject: Typography in comments. X-Git-Tag: v0.1~6277 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=1c7339107c345bd4b0e94b6f11937f562516a06d;p=gnulib.git Typography in comments. --- diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 7afb3661b..31cb46bd5 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -4588,7 +4588,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, { # if WIDE_CHAR_VERSION /* ISO C says about %ls in fwprintf: - "If the precision is not specified or is greater + "If the precision is not specified or is greater than the size of the array, the array shall contain a null wide character." So if there is a precision, we must not use @@ -4602,7 +4602,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, tmp_length = local_wcslen (arg); # else /* ISO C says about %ls in fprintf: - "If a precision is specified, no more than that + "If a precision is specified, no more than that many bytes are written (including shift sequences, if any), and the array shall contain a null wide character if, to equal the @@ -4621,7 +4621,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, { # if WIDE_CHAR_VERSION /* ISO C says about %s in fwprintf: - "If the precision is not specified or is greater + "If the precision is not specified or is greater than the size of the converted array, the converted array shall contain a null wide character."