summaryrefslogtreecommitdiff
path: root/ext/dom/document.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-12 00:58:52 +0000
commit93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53 (patch)
tree981e9591cd93532e591400b35b595735a6eee0b7 /ext/dom/document.c
parent3652ab6032819e4854ae607fe8084cd129791983 (diff)
downloadphp-git-93bcd55eafbcf2a49e8963c3475d5a7b1fbc8c53.tar.gz
emalloc -> safe_emalloc
Diffstat (limited to 'ext/dom/document.c')
-rw-r--r--ext/dom/document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/document.c b/ext/dom/document.c
index aaa5d58d90..6e92d10633 100644
--- a/ext/dom/document.c
+++ b/ext/dom/document.c
@@ -700,7 +700,7 @@ PHP_FUNCTION(dom_document_get_elements_by_tag_name)
ctxp = xmlXPathNewContext(docp);
ctxp->node = NULL;
- str = (char*) emalloc((name_len+3) * sizeof(char)) ;
+ str = (char*) safe_emalloc((name_len+3), sizeof(char), 0) ;
sprintf(str ,"//%s",name);
xpathobjp = xmlXPathEval(str, ctxp);