From 3e68f49f3595e8b4fa5073211c657b78f029ebaa Mon Sep 17 00:00:00 2001 From: hooper114 Date: Mon, 6 Oct 2008 07:15:48 +0000 Subject: [PATCH] Corrected EAN-13 text bug --- backend/png.c | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/png.c b/backend/png.c index a5008808..a2a4827e 100644 --- a/backend/png.c +++ b/backend/png.c @@ -613,6 +613,7 @@ int png_plot(struct zint_symbol *symbol, int rotate_angle) draw_bar(pixelbuf, (94 + xoffset), 1, (4 + (int)yoffset), 5, image_width, image_height); textpart[0] = symbol->text[0]; + textpart[1] = '\0'; textpos = 2 * (-7 + xoffset); draw_string(pixelbuf, textpart, textpos, (image_height - 17), image_width, image_height); for(i = 0; i < 6; i++) {