summaryrefslogtreecommitdiff
path: root/src/core/testasyncgetprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/testasyncgetprop.c')
-rw-r--r--src/core/testasyncgetprop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/testasyncgetprop.c b/src/core/testasyncgetprop.c
index d357dbea..78ccede9 100644
--- a/src/core/testasyncgetprop.c
+++ b/src/core/testasyncgetprop.c
@@ -37,6 +37,7 @@
#include <errno.h>
#include <signal.h>
#include <assert.h>
+#include <glib.h>
#ifndef TRUE
#define TRUE 1
@@ -138,7 +139,7 @@ my_strdup (const char *str)
fprintf (stderr, "malloc failed\n");
exit (1);
}
- strcpy (s, str);
+ g_strlcpy (s, str, (strlen (str) + 1));
return s;
}