[cairo-commit] 2 commits - test/pdf-operators-text.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 25 13:23:33 UTC 2022
test/pdf-operators-text.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 12cd2bcbb260f4ed64a72b64bd2fdd593f683bbc
Merge: 8cb6deed3 44ff5e4e6
Author: Uli Schlachter <psychon at znc.in>
Date: Fri Nov 25 13:23:31 2022 +0000
Merge branch 'testfix' into 'master'
Zero terminate temp buffers before calling strcat.
See merge request cairo/cairo!369
commit 44ff5e4e6c92e81829f1adb3383d8eb788ba42c6
Author: Jussi Pakkanen <jpakkane at gmail.com>
Date: Wed Nov 23 23:21:15 2022 +0200
Zero terminate temp buffers before calling strcat.
diff --git a/test/pdf-operators-text.c b/test/pdf-operators-text.c
index 556b9d7d8..6d654d115 100644
--- a/test/pdf-operators-text.c
+++ b/test/pdf-operators-text.c
@@ -127,6 +127,7 @@ draw (cairo_t *cr, int width, int height)
cairo_set_font_size (cr, FONT_SIZE);
text = malloc (strlen(WORD) * NUM_WORDS + 1);
+ text[0] = '\0';
for (i = 0; i < NUM_WORDS; i++)
strcat (text, WORD);
More information about the cairo-commit
mailing list