]> code.delx.au - gnu-emacs/commitdiff
Fixes: debbugs:20156
authorJan D <jan.h.d@swipnet.se>
Sun, 22 Mar 2015 09:14:36 +0000 (10:14 +0100)
committerJan D <jan.h.d@swipnet.se>
Sun, 22 Mar 2015 09:14:36 +0000 (10:14 +0100)
* src/fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for
regexsize.

src/ChangeLog
src/fontset.c

index 5aa248e91b923ba81ee1249859a4accb728e68aa..79feb611f3d31e2ab2509d7b0e336b2f168e0719 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-22  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * fontset.c (fontset_pattern_regexp): Replace + 1 with + 3 for
+       regexsize (Bug#20156).
+
 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
 
        * emacs.c (synchronize_locale) [WINDOWSNT]: Ignore 'category' and
index c0303fa5a34d25f4b1e40bcedb6de04ec179462d..763d84628b54dc4af8136c299a38c57fa16f0768 100644 (file)
@@ -1074,7 +1074,7 @@ fontset_pattern_regexp (Lisp_Object pattern)
         expression matching.  */
       ptrdiff_t regexsize = (SBYTES (pattern)
                             + (ndashes < 14 ? 2 : 5) * nstars
-                            + 2 * nescs + 1);
+                            + 2 * nescs + 3);
       USE_SAFE_ALLOCA;
       p1 = regex = SAFE_ALLOCA (regexsize);