commit | adbb0e634fdba141cd19f7cab7600fb4eb5997f1 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Sat May 10 20:02:45 2003 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Sat May 10 20:02:45 2003 +0000 |
tree | c7569092d0ea61ee3fb34ac0ea4d652669dce61e | |
parent | a77cf71f453249f224d609f2f20789a897c5bdeb [diff] [blame] |
Stéphane Bidoul found an off by one addressing error on the error * relaxng.c: Stéphane Bidoul found an off by one addressing error on the error handling. Daniel
diff --git a/relaxng.c b/relaxng.c index 55e0852..99ff9e9 100644 --- a/relaxng.c +++ b/relaxng.c
@@ -1991,7 +1991,7 @@ if (msg[0] == 0) { snprintf(msg, 1000, "Unknown error code %d", err); } - msg[1000] = 0; + msg[1000 - 1] = 0; return(xmlStrdup((xmlChar *) msg)); }