Bugfix for xml-entities.cc

3 views
Skip to first unread message

Seahen

unread,
Feb 1, 2010, 8:05:46 PM2/1/10
to ocropus
xml-entities.cc was refusing to compile on g++ on my machine, with the
following error:

ocr-utils/xml-entities.cc:119: error: invalid conversion from 'const
char*' to 'char*'

The following change fixes the error:

119c119
< while((p = strchr(begin, '&'))) {
---
> while((p = strchr((char *)begin, '&'))) {

Reply all
Reply to author
Forward
0 new messages