]> granicus.if.org Git - libexpat/commitdiff
Return 1-based line numbers
authorJames Clark <jjc@jclark.com>
Wed, 4 Feb 1998 04:42:48 +0000 (04:42 +0000)
committerJames Clark <jjc@jclark.com>
Wed, 4 Feb 1998 04:42:48 +0000 (04:42 +0000)
expat/xmlparse/xmlparse.c

index f401609a83dbd8c9fd47f7f485791a94b90031d4..2e896e526c6a674f5029100b561853b193d34695 100755 (executable)
@@ -407,7 +407,7 @@ int XML_GetErrorCode(XML_Parser parser)
 
 int XML_GetErrorLineNumber(XML_Parser parser)
 {
-  return position.lineNumber;
+  return position.lineNumber + 1;
 }
 
 int XML_GetErrorColumnNumber(XML_Parser parser)