Clear symbol->text without a constant.

This commit is contained in:
Boris Zentner 2016-10-27 21:55:26 +02:00 committed by Robin Stuart
parent 02c0df93e6
commit 8851884ea1

View File

@ -85,7 +85,7 @@ void ZBarcode_Clear(struct zint_symbol *symbol) {
} }
symbol->rows = 0; symbol->rows = 0;
symbol->width = 0; symbol->width = 0;
memset(symbol->text, 0, 128); memset(symbol->text, 0, sizeof(symbol->text));
symbol->errtxt[0] = '\0'; symbol->errtxt[0] = '\0';
if (symbol->bitmap != NULL) { if (symbol->bitmap != NULL) {
free(symbol->bitmap); free(symbol->bitmap);