summaryrefslogtreecommitdiff
path: root/xps/xpsresource.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2010-12-07 15:45:05 +0000
committerTor Andersson <tor.andersson@artifex.com>2010-12-07 15:45:05 +0000
commit221c377f78935fd25216832e9fbb30e7f18ccb78 (patch)
treeec5ec468fbd19cd4761a059107b3a9d4328f31ee /xps/xpsresource.c
parent0abf0762f28b4bf11e86d3d1d54cb0df1ae74a0d (diff)
downloadghostpdl-221c377f78935fd25216832e9fbb30e7f18ccb78.tar.gz
Fix typo in xpsresource. Use strdup instead of strlcpy with an incorrect length.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11939 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsresource.c')
-rw-r--r--xps/xpsresource.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xps/xpsresource.c b/xps/xpsresource.c
index 17cfdf2dd..4468e44be 100644
--- a/xps/xpsresource.c
+++ b/xps/xpsresource.c
@@ -162,8 +162,7 @@ xps_parse_resource_dictionary(xps_context_t *ctx, xps_resource_t **dictp, char *
if (head)
{
- head->base_uri = xps_alloc(ctx, strlen(base_uri) + 1);
- xps_strlcpy(head->base_uri, base_uri, sizeof head->base_uri);
+ head->base_uri = xps_strdup(ctx, base_uri);
}
*dictp = head;