]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
msgfmt: fix C&P issue
authorPavel Raiskup <praiskup@redhat.com>
Wed, 21 Nov 2018 14:46:29 +0000 (15:46 +0100)
committerDaiki Ueno <ueno@gnu.org>
Wed, 21 Nov 2018 16:32:40 +0000 (17:32 +0100)
* gettext-tools/src/msgl-check.c (syntax_check_space_ellipsis):
Use 'end' for buffer size computation, instead of NULL 'ellipsis'.

gettext-tools/src/msgl-check.c

index 11560ad54954f68d416b82a8fd23c92d21c90811..afc9c6ea663b46a26fa90e572c4edc2e30bee059 100644 (file)
@@ -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;
                 }