From: Pavel Raiskup Date: Wed, 21 Nov 2018 14:46:29 +0000 (+0100) Subject: msgfmt: fix C&P issue X-Git-Tag: v0.20~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83735ad8ae9588db3742b5cc6cb2a7de79c05589;p=thirdparty%2Fgettext.git msgfmt: fix C&P issue * gettext-tools/src/msgl-check.c (syntax_check_space_ellipsis): Use 'end' for buffer size computation, instead of NULL 'ellipsis'. --- diff --git a/gettext-tools/src/msgl-check.c b/gettext-tools/src/msgl-check.c index 11560ad54..afc9c6ea6 100644 --- a/gettext-tools/src/msgl-check.c +++ b/gettext-tools/src/msgl-check.c @@ -984,7 +984,7 @@ syntax_check_space_ellipsis (const message_ty *mp, const char *msgid) /* Look for a U+2026. */ for (cp = end - 1; cp >= str; cp--) { - u8_mbtouc (&uc, (const unsigned char *) cp, ellipsis - cp); + u8_mbtouc (&uc, (const unsigned char *) cp, end - cp); if (uc != 0xfffd) break; }