OMNeT++/OMNEST Bug Tracker - OMNeT++
View Issue Details
0000300OMNeT++simulation kernelpublic2011-05-13 21:552011-05-17 14:10
jesjones 
andras 
normalminoralways
resolvedfixed 
4.1 
 
0000300: Bad printf format in SAXParser::parse
The `sprintf(errortext, "Parse error` line uses %d for the result of XML_GetCurrentLineNumber which doesn't work so well because XML_GetCurrentLineNumber returns an unsigned long.
No tags attached.
Issue History
2011-05-13 21:55jesjonesNew Issue
2011-05-17 14:10andrasNote Added: 0000446
2011-05-17 14:10andrasStatusnew => resolved
2011-05-17 14:10andrasFixed in Version => 4.2b3
2011-05-17 14:10andrasResolutionopen => fixed
2011-05-17 14:10andrasAssigned To => andras

Notes
(0000446)
andras   
2011-05-17 14:10   
In older Expat versions (e.g. 1.95.8), XML_GetCurrentLineNumber() return type was int; at some point this was apparently changed to long. Added explicit 'long' cast to accommodate both.