bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [PATCH] msgfmt: fix C&P issue


From: Pavel Raiskup
Subject: [bug-gettext] [PATCH] msgfmt: fix C&P issue
Date: Wed, 21 Nov 2018 15:46:29 +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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
                 }
-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]