From cefb04867289b6839db7a7ec3f2d007b263f28d9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 24 Feb 2009 11:35:44 +0000 Subject: [PATCH] Typography in comments. --- gettext-runtime/intl/vasnprintf.c | 6 +++--- gettext-runtime/libasprintf/vasnprintf.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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." -- 2.47.3