From b566ce1d28fc867c0c8c5d93cfb7be3a839e1431 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sat, 4 Mar 2000 11:39:42 +0000 Subject: [PATCH] Rebuit doc finished closing a few bugs, Daniel. --- ChangeLog | 6 ++++++ parser.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1984e69..38c5a2a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Mar 4 16:14:42 CET 2000 Daniel Veillard + + * doc/* : rebuilt the docs + * parser.c: final patch on #6766 + * valid.c: small patch on validity checks. + Sat Mar 4 12:38:41 CET 2000 Daniel Veillard * doc/upgrade.html: instruction on how to upgrade from 1.x to 2.x diff --git a/parser.c b/parser.c index 81071680..bd32ef4b 100644 --- a/parser.c +++ b/parser.c @@ -8320,8 +8320,8 @@ xmlRecoverFile(const char *filename) { /** * xmlCreateMemoryParserCtxt : - * @buffer: an pointer to a char array - * @size: the size of the array + * @buffer: an pointer to a zero terminated char array + * @size: the size of the array (without the trailing 0) * * Create a parser context for an XML in-memory document. * @@ -8334,7 +8334,7 @@ xmlCreateMemoryParserCtxt(char *buffer, int size) { xmlCharEncoding enc; if (buffer[size] != '\0') - buffer[size] = '\0'; + return(NULL); ctxt = xmlNewParserCtxt(); if (ctxt == NULL) {