Bugzilla – Attachment #26576: file-4.10-mconvert.patch for bug #63576
return 1;
case FILE_STRING:
{
int n;
size_t n;
/* Null terminate and eat *trailing* return */
p->s[sizeof(p->s) - 1] = '\0';
n = strlen(p->s) - 1;
n = strlen(p->s);
if (p->s[n] == '\n')
if (n-- && p->s[n] == '\n')
p->s[n] = '\0';
}