From fd5db95c84a77252ae769893f2bbe4a82f27cbc3 Mon Sep 17 00:00:00 2001
From: Taylor R Campbell <campbell@mumble.net>
Date: Sun, 6 Apr 2014 22:10:20 +0000
Subject: [PATCH] Fix technically incorrect malloc size in re_match.  Omit
 needless cast.

---
 src/microcode/regex.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/microcode/regex.c b/src/microcode/regex.c
index 46833366a..4745d67d5 100644
--- a/src/microcode/regex.c
+++ b/src/microcode/regex.c
@@ -543,8 +543,7 @@ re_match (unsigned char * pattern_start,
   translation = (buffer -> translation);
   syntax_table = (buffer -> syntax_table);
 
-  stack_start =
-    ((unsigned char **) (malloc ((2 * RE_NFAILURES) * (sizeof (char *)))));
+  stack_start = (malloc ((2 * RE_NFAILURES) * (sizeof (*stack_start))));
   if (stack_start == NULL)
     RE_RETURN (-3);
 
-- 
2.25.1