From: Bruno Haible Date: Tue, 24 Feb 2009 11:35:44 +0000 (+0000) Subject: Typography in comments. X-Git-Tag: v0.18~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cefb04867289b6839db7a7ec3f2d007b263f28d9;p=thirdparty%2Fgettext.git Typography in comments. --- diff --git a/gettext-runtime/intl/vasnprintf.c b/gettext-runtime/intl/vasnprintf.c index 6e88f6ae6..9ff99055f 100644 --- a/gettext-runtime/intl/vasnprintf.c +++ b/gettext-runtime/intl/vasnprintf.c @@ -4589,7 +4589,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 @@ -4603,7 +4603,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 @@ -4622,7 +4622,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." diff --git a/gettext-runtime/libasprintf/vasnprintf.c b/gettext-runtime/libasprintf/vasnprintf.c index 6e88f6ae6..9ff99055f 100644 --- a/gettext-runtime/libasprintf/vasnprintf.c +++ b/gettext-runtime/libasprintf/vasnprintf.c @@ -4589,7 +4589,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 @@ -4603,7 +4603,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 @@ -4622,7 +4622,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."