From 9795ffe6413849d7c0d017bd9c40635c431f7d6d Mon Sep 17 00:00:00 2001 From: gitlost Date: Wed, 8 Apr 2020 10:42:05 +0100 Subject: [PATCH] Ultracode missing parens around alloca length * sizeof --- backend/ultra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/ultra.c b/backend/ultra.c index 15534454..521d7716 100644 --- a/backend/ultra.c +++ b/backend/ultra.c @@ -575,8 +575,8 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou int cw_fragment[in_length + 1]; #else unsigned char * crop_source = (unsigned char *) _alloca((in_length + 1) * sizeof (unsigned char)); - char * mode = (char *) _alloca(in_length + 1 * sizeof (char)); - int * cw_fragment = (int *) _alloca(in_length + 1 * sizeof (int)); + char * mode = (char *) _alloca((in_length + 1) * sizeof (char)); + int * cw_fragment = (int *) _alloca((in_length + 1) * sizeof (int)); #endif /* _MSC_VER */ /* Section 7.6.2 indicates that ECI \000003 to \811799 are supported */