summaryrefslogtreecommitdiff
path: root/xps/xpsmem.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2009-10-01 15:04:16 +0000
committerTor Andersson <tor.andersson@artifex.com>2009-10-01 15:04:16 +0000
commit339f66fece487f07a1829af617abb3abb8b727c0 (patch)
tree53829f2325163a59a1bf28c850a2c77c4103ed6f /xps/xpsmem.c
parent5caea24716bbbeb97a9582c42cae69ccde813a3d (diff)
downloadghostpdl-339f66fece487f07a1829af617abb3abb8b727c0.tar.gz
Thread base_uri argument to fixed page parsing functions so that resources specified with relative paths can be resolved in the right context. Also fixed a few warnings.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10107 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/xpsmem.c')
-rw-r--r--xps/xpsmem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xps/xpsmem.c b/xps/xpsmem.c
index 465b3f445..03ec70a64 100644
--- a/xps/xpsmem.c
+++ b/xps/xpsmem.c
@@ -30,7 +30,7 @@ xps_strcasecmp(char *a, char *b)
{
if (*a++ == 0)
return 0;
- *b++;
+ b++;
}
return xps_tolower(*a) - xps_tolower(*b);
}
@@ -104,7 +104,7 @@ xps_clean_path(char *name)
}
void
-xps_absolute_path(char *output, char *pwd, char *path)
+xps_absolute_path(char *output, char *base_uri, char *path)
{
if (path[0] == '/')
{
@@ -112,7 +112,7 @@ xps_absolute_path(char *output, char *pwd, char *path)
}
else
{
- strcpy(output, pwd);
+ strcpy(output, base_uri);
strcat(output, "/");
strcat(output, path);
}