summaryrefslogtreecommitdiff
path: root/DOCBparser.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-04-23 13:56:44 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-04-23 13:56:44 +0000
commit85095e2c075b7b57a43229d8a0edb31c39ac0802 (patch)
treed423d85446e728e720516ab9e07c353ccda6857c /DOCBparser.c
parent5439624bd9167dbb880ea4a75d91677d20a6ebe3 (diff)
downloadlibxml2-85095e2c075b7b57a43229d8a0edb31c39ac0802.tar.gz
try to find more places where xmlCanonicPath() must be used to convert
* DOCBparser.c SAX.c catalog.c debugXML.c parser.c: try to find more places where xmlCanonicPath() must be used to convert filenames to URLs, trying to fix #111088 Daniel
Diffstat (limited to 'DOCBparser.c')
-rw-r--r--DOCBparser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/DOCBparser.c b/DOCBparser.c
index 5a811cbc..82b95652 100644
--- a/DOCBparser.c
+++ b/DOCBparser.c
@@ -5918,7 +5918,7 @@ docbCreatePushParserCtxt(docbSAXHandlerPtr sax, void *user_data,
if (filename == NULL)
inputStream->filename = NULL;
else
- inputStream->filename = xmlMemStrdup(filename);
+ inputStream->filename = xmlCanonicPath(filename);
inputStream->buf = buf;
inputStream->base = inputStream->buf->buffer->content;
inputStream->cur = inputStream->buf->buffer->content;
@@ -6030,8 +6030,7 @@ docbCreateFileParserCtxt(const char *filename,
}
memset(inputStream, 0, sizeof(docbParserInput));
- inputStream->filename = (char *)
- xmlCanonicPath((const xmlChar *)filename);
+ inputStream->filename = (char *) xmlCanonicPath((const xmlChar *)filename);
inputStream->line = 1;
inputStream->col = 1;
inputStream->buf = buf;