mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Ultracode missing parens around alloca length * sizeof
This commit is contained in:
parent
6d84b166dc
commit
9795ffe641
@ -575,8 +575,8 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou
|
|||||||
int cw_fragment[in_length + 1];
|
int cw_fragment[in_length + 1];
|
||||||
#else
|
#else
|
||||||
unsigned char * crop_source = (unsigned char *) _alloca((in_length + 1) * sizeof (unsigned char));
|
unsigned char * crop_source = (unsigned char *) _alloca((in_length + 1) * sizeof (unsigned char));
|
||||||
char * mode = (char *) _alloca(in_length + 1 * sizeof (char));
|
char * mode = (char *) _alloca((in_length + 1) * sizeof (char));
|
||||||
int * cw_fragment = (int *) _alloca(in_length + 1 * sizeof (int));
|
int * cw_fragment = (int *) _alloca((in_length + 1) * sizeof (int));
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
/* Section 7.6.2 indicates that ECI \000003 to \811799 are supported */
|
/* Section 7.6.2 indicates that ECI \000003 to \811799 are supported */
|
||||||
|
Loading…
Reference in New Issue
Block a user