diff options
Diffstat (limited to 'ext/dom/documenttype.c')
| -rw-r--r-- | ext/dom/documenttype.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/dom/documenttype.c b/ext/dom/documenttype.c index 20cfdea6e..fcb938f97 100644 --- a/ext/dom/documenttype.c +++ b/ext/dom/documenttype.c @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: documenttype.c,v 1.15.2.1.2.1.2.4 2008/12/31 11:15:36 sebastian Exp $ */ +/* $Id: documenttype.c 289439 2009-10-09 18:52:59Z pajoye $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -190,7 +190,6 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval **retval TSRMLS_ xmlDtdPtr dtdptr; xmlDtd *intsubset; xmlOutputBuffer *buff = NULL; - xmlChar *strintsubset; dtdptr = (xmlDtdPtr) dom_object_get_node(obj); @@ -206,9 +205,8 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval **retval TSRMLS_ if (buff != NULL) { xmlNodeDumpOutput (buff, NULL, (xmlNodePtr) intsubset, 0, 0, NULL); xmlOutputBufferFlush(buff); - strintsubset = xmlStrndup(buff->buffer->content, buff->buffer->use); + ZVAL_STRINGL(*retval, buff->buffer->content, buff->buffer->use, 1); (void)xmlOutputBufferClose(buff); - ZVAL_STRING(*retval, (char *) strintsubset, 1); return SUCCESS; } } |
