[xml] test/reader6.py crashes...



...because of a typo in relaxng.c.

-sbi

Index: relaxng.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/relaxng.c,v
retrieving revision 1.71
diff -c -r1.71 relaxng.c
*** relaxng.c   9 May 2003 22:26:28 -0000       1.71
--- relaxng.c   10 May 2003 19:39:37 -0000
***************
*** 1991,1997 ****
     if (msg[0] == 0) {
       snprintf(msg, 1000, "Unknown error code %d", err);
     }
!     msg[1000] = 0;
     return(xmlStrdup((xmlChar *) msg));
 }

--- 1991,1997 ----
     if (msg[0] == 0) {
       snprintf(msg, 1000, "Unknown error code %d", err);
     }
!     msg[1000-1] = 0;
     return(xmlStrdup((xmlChar *) msg));
 }







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]