Commit 0aa6344c 0aa6344c986b739736566dd02ad8169c1b78b0f0 by Sergey Poznyakoff

(mh_read_formfile): Bugfix.

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