Hi! There is no check for (buffer.length() >= strlen(suffix)) before the strcmp() condition:
if (!strcmp(&buffer.c_str()[buffer.length()-strlen(suffix)], suffix)) { which might lead to undefined behaviour. Best regards, Jaak _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page