1
0
Fork 0
mirror of https://git.code.sf.net/p/zint/code synced 2025-05-30 23:05:23 -04:00

Windows: cast _allocas/mallocs, update DLL version, props Pierre Y.

This commit is contained in:
gitlost 2020-06-15 16:06:11 +01:00
parent a775e66f3f
commit 34d3319cc6
6 changed files with 11 additions and 11 deletions
backend

View file

@ -55,7 +55,7 @@ INTERNAL int bmp_pixel_plot(struct zint_symbol *symbol, char *pixelbuf) {
data_offset = sizeof (bitmap_file_header_t) + sizeof (bitmap_info_header_t);
file_size = data_offset + data_size;
bitmap_file_start = malloc(file_size);
bitmap_file_start = (unsigned char *) malloc(file_size);
if (bitmap_file_start == NULL) {
strcpy(symbol->errtxt, "602: Out of memory");
return ZINT_ERROR_MEMORY;