summaryrefslogtreecommitdiff
path: root/xsltproc
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-11-04 17:04:59 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-11-04 17:04:59 +0000
commitd7627fbf78ee906051ad54247b49c8da12fcc3a4 (patch)
tree850761843de47bd9f8d21a0125947d2eb283d7f1 /xsltproc
parent272ea49e696bda73557d3a8337201e08aefe00f1 (diff)
downloadlibxslt-d7627fbf78ee906051ad54247b49c8da12fcc3a4.tar.gz
libxslt-d7627fbf78ee906051ad54247b49c8da12fcc3a4.tar.bz2
libxslt-d7627fbf78ee906051ad54247b49c8da12fcc3a4.zip
remove the use of snprintf, and use libxml2 string API instead. try to
* xsltproc/xsltproc.c: remove the use of snprintf, and use libxml2 string API instead. * configure.in libxslt/xsltconfig.h.in libxslt/xsltutils.c: try to cope with architecture lacking some of the string functions, reuse the trio ones compiled in libxml2 , should close #97113 Daniel
Diffstat (limited to 'xsltproc')
-rw-r--r--xsltproc/xsltproc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 2db74f20..09b239ff 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -175,10 +175,10 @@ xsltprocExternalEntityLoader(const char *URL, const char *ID,
xmlChar *newURL;
int len;
- len = xmlStrlen(paths[i]) + xmlStrlen(BAD_CAST URL) + 5;
- newURL = xmlMalloc(len);
+ newURL = xmlStrdup((const xmlChar *) paths[i]);
+ newURL = xmlStrcat(newURL, (const xmlChar *) "/");
+ newURL = xmlStrcat(newURL, (const xmlChar *) URL);
if (newURL != NULL) {
- snprintf(newURL, len, "%s/%s", paths[i], URL);
ret = defaultEntityLoader((const char *)newURL, ID, ctxt);
xmlFree(newURL);
if (ret != NULL) {