From 8851884ea11f0dcaf711bba4b0b96316e8f6882c Mon Sep 17 00:00:00 2001 From: Boris Zentner Date: Thu, 27 Oct 2016 21:55:26 +0200 Subject: [PATCH] Clear symbol->text without a constant. --- backend/library.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/library.c b/backend/library.c index d8865ad4..8d9f7a25 100644 --- a/backend/library.c +++ b/backend/library.c @@ -85,7 +85,7 @@ void ZBarcode_Clear(struct zint_symbol *symbol) { } symbol->rows = 0; symbol->width = 0; - memset(symbol->text, 0, 128); + memset(symbol->text, 0, sizeof(symbol->text)); symbol->errtxt[0] = '\0'; if (symbol->bitmap != NULL) { free(symbol->bitmap);