summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2022-11-25 13:23:31 +0000
committerUli Schlachter <psychon@znc.in>2022-11-25 13:23:31 +0000
commit12cd2bcbb260f4ed64a72b64bd2fdd593f683bbc (patch)
tree2c882b45094e3b428197096d8880c2bfd3a10c48 /test
parent8cb6deed39c7ac0d4a09ab4537cd0005ac738121 (diff)
parent44ff5e4e6c92e81829f1adb3383d8eb788ba42c6 (diff)
downloadcairo-12cd2bcbb260f4ed64a72b64bd2fdd593f683bbc.tar.gz
Merge branch 'testfix' into 'master'
Zero terminate temp buffers before calling strcat. See merge request cairo/cairo!369
Diffstat (limited to 'test')
-rw-r--r--test/pdf-operators-text.c1
1 files changed, 1 insertions, 0 deletions
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);