Fix -esc crash for windows

This commit is contained in:
Harald Oehlmann 2018-01-14 17:47:02 +01:00
parent 782a3a6f39
commit 7cb5eec35a

View File

@ -800,7 +800,7 @@ int escape_char_process(struct zint_symbol *symbol, unsigned char *input_string,
#ifndef _MSC_VER
unsigned char escaped_string[*length + 1];
#else
unsigned char* escaped_string = (unsigned char*) _alloca(length + 1);
unsigned char* escaped_string = (unsigned char*) _alloca(*length + 1);
#endif
in_posn = 0;