Commit 0aa6344c 0aa6344c986b739736566dd02ad8169c1b78b0f0 by Sergey Poznyakoff

(mh_read_formfile): Bugfix.

1 parent 76502371
......@@ -82,7 +82,7 @@ mh_read_formfile (char *name, char **pformat)
}
format_str = xmalloc (st.st_size+1);
while ((ptr = fgets (format_str + off, st.st_size - off, fp)) != NULL)
while ((ptr = fgets (format_str + off, st.st_size - off + 1, fp)) != NULL)
{
int len = strlen (ptr);
if (len == 0)
......