From 75af67870fab28353dd8fd86a0558aa3f2df4137 Mon Sep 17 00:00:00 2001 From: helge Date: Fri, 6 May 2005 16:05:34 +0000 Subject: [PATCH] minor improvements to parsing git-svn-id: http://svn.opengroupware.org/SOPE/trunk@801 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-xml/libxmlSAXDriver/ChangeLog | 4 ++++ sope-xml/libxmlSAXDriver/Version | 2 +- sope-xml/libxmlSAXDriver/libxmlSAXDriver.m | 6 +++--- sope-xml/samples/saxxml.m | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sope-xml/libxmlSAXDriver/ChangeLog b/sope-xml/libxmlSAXDriver/ChangeLog index 56d23123..cbf018a7 100644 --- a/sope-xml/libxmlSAXDriver/ChangeLog +++ b/sope-xml/libxmlSAXDriver/ChangeLog @@ -1,3 +1,7 @@ +2005-05-06 Helge Hess + + * libxmlSAXDriver.m: minor improvements to error messages (v4.5.19) + 2005-05-03 Helge Hess * fixed loads of gcc 4.0 warnings (v4.5.18) diff --git a/sope-xml/libxmlSAXDriver/Version b/sope-xml/libxmlSAXDriver/Version index beecb228..365a9c2e 100644 --- a/sope-xml/libxmlSAXDriver/Version +++ b/sope-xml/libxmlSAXDriver/Version @@ -1,3 +1,3 @@ # version -SUBMINOR_VERSION:=18 +SUBMINOR_VERSION:=19 diff --git a/sope-xml/libxmlSAXDriver/libxmlSAXDriver.m b/sope-xml/libxmlSAXDriver/libxmlSAXDriver.m index fc0fa915..900f299d 100644 --- a/sope-xml/libxmlSAXDriver/libxmlSAXDriver.m +++ b/sope-xml/libxmlSAXDriver/libxmlSAXDriver.m @@ -404,7 +404,7 @@ static xmlSAXHandler saxHandler = { nil]; e = (id)[SaxParseException exceptionWithName:@"SaxIOException" - reason:@"can't handle data-source" + reason:@"cannot handle data-source" userInfo:ui]; [self->errorHandler fatalError:e]; @@ -425,7 +425,7 @@ static xmlSAXHandler saxHandler = { } /* zero-terminate the data !!! */ - src = malloc(len + 1); + src = malloc(len + 2); [_source getBytes:src length:len]; src[len] = '\0'; start = src; @@ -539,7 +539,7 @@ static int mfclose(void *f) { nil]; e = (id)[SaxParseException exceptionWithName:@"SaxIOException" - reason:@"can't handle system-id" + reason:@"cannot handle system-id" userInfo:ui]; [self->errorHandler fatalError:e]; diff --git a/sope-xml/samples/saxxml.m b/sope-xml/samples/saxxml.m index 56046a59..047fa28f 100644 --- a/sope-xml/samples/saxxml.m +++ b/sope-xml/samples/saxxml.m @@ -55,7 +55,7 @@ int main(int argc, char **argv, char **env) { cwd = [[NSFileManager defaultManager] currentDirectoryPath]; if (parser == nil) { - fprintf(stderr, "could not load a SAX driver bundle !\n"); + fprintf(stderr, "could not load a SAX driver bundle!\n"); exit(2); } -- 2.39.5