summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-pangocairo-threads.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-pangocairo-threads.c b/tests/test-pangocairo-threads.c
index 520f7c3f..6d497601 100644
--- a/tests/test-pangocairo-threads.c
+++ b/tests/test-pangocairo-threads.c
@@ -82,10 +82,12 @@ main (int argc, char **argv)
for (i = 0; i < num_threads; i++)
{
+ char buf[10];
cairo_surface_t *surface = create_surface ();
g_ptr_array_add (surfaces, surface);
+ snprintf (buf, sizeof (buf), "%d", i);
g_ptr_array_add (threads,
- g_thread_new (g_strdup_printf ("%d", i),
+ g_thread_new (buf,
thread_func,
surface));
}