Bodo Meissner found that textfmt would wrongfully return a line
too long error message in some circumstances and suggested a
fix for this.
fxStr val = tmp;
while (fgets(buf, sizeof(buf), fd) != NULL) {
len = strcspn(buf, "%\n");
- *(buf + len) = '\0';
if (len == strlen(buf)) {
emsg = fxStr::format(
NLS::TEXT("Warning: %s - line too long."), (const char*) fontMapFile);
break;
}
if (len == 0) continue;
+ *(buf + len) = '\0';
tmp = buf + strcspn(buf, ") \t");
*tmp++ = '\0';
tmp += strspn(tmp, " \t");