summaryrefslogtreecommitdiff
path: root/xps/xpscolor.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-11-19 11:34:14 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-11-24 16:56:26 +0100
commit40e2a79e7e4c223c4219b12020fde906df5fd91e (patch)
treee373aaef1b74b78cb3cef64f6f99e59bc71e068a /xps/xpscolor.c
parent100dff645dbb231de77e7b2f347a459490213bef (diff)
downloadghostpdl-40e2a79e7e4c223c4219b12020fde906df5fd91e.tar.gz
xps: Use xps_strlcpy instead of strcpy when parsing colors.
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)