(mh_read_formfile): Bugfix.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment