summaryrefslogtreecommitdiff
path: root/xps/xpscolor.c
diff options
context:
space:
mode:
Diffstat (limited to 'xps/xpscolor.c')
-rw-r--r--xps/xpscolor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xpscolor.c b/xps/xpscolor.c
index 02196d374..b7227f332 100644
--- a/xps/xpscolor.c
+++ b/xps/xpscolor.c
@@ -114,7 +114,7 @@ xps_parse_color(xps_context_t *ctx, char *base_uri, char *string,
else if (strstr(string, "ContextColor ") == string)
{
/* Crack the string for profile name and sample values */
- strcpy(buf, string);
+ xps_strlcpy(buf, string, sizeof buf);
profile = strchr(buf, ' ');
if (!profile)