]> err.no Git - sope/commitdiff
minor improvements to parsing
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 6 May 2005 16:05:34 +0000 (16:05 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Fri, 6 May 2005 16:05:34 +0000 (16:05 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@801 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-xml/libxmlSAXDriver/ChangeLog
sope-xml/libxmlSAXDriver/Version
sope-xml/libxmlSAXDriver/libxmlSAXDriver.m
sope-xml/samples/saxxml.m

index 56d23123f3f45b1e153723fbfff599f850c58508..cbf018a78cf6f1dbe3583fc0369dce6575a9562e 100644 (file)
@@ -1,3 +1,7 @@
+2005-05-06  Helge Hess  <helge.hess@opengroupware.org>
+
+       * libxmlSAXDriver.m: minor improvements to error messages (v4.5.19)
+
 2005-05-03  Helge Hess  <helge.hess@opengroupware.org>
 
        * fixed loads of gcc 4.0 warnings (v4.5.18)
index beecb228a39fbbf2fd6de864b72ca89a7003d053..365a9c2e7b5825cafedc9cc840b1221ca4d66462 100644 (file)
@@ -1,3 +1,3 @@
 # version
 
-SUBMINOR_VERSION:=18
+SUBMINOR_VERSION:=19
index fc0fa91526f500494b0ac303c93b4c73b2220c6d..900f299d499da8d831ae773d5d476089b3ef28ca 100644 (file)
@@ -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];
index 56046a59ef1a572e35396b8b5fc76b82c3a6899f..047fa28f7ea42d8a22cd4fc11578607581f1b3ea 100644 (file)
@@ -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);
   }