if ((fp = fopen (filename, "r")) != NULL)
{
- while (!found && (buf = mutt_read_line (buf, &buflen, fp, &line)) != NULL)
+ while (!found && (buf = mutt_read_line (buf, &buflen, fp, &line, M_CONT)) != NULL)
{
/* ignore comments */
if (*buf == '#')
}
}
} /* while (!found && (buf = mutt_read_line ())) */
- fclose (fp);
+ safe_fclose (&fp);
} /* if ((fp = fopen ())) */
FREE (&buf);
return found;
return 3;
if ((nfp = safe_fopen (newfile,"w")) == NULL)
{
- fclose(ofp);
+ safe_fclose (&ofp);
return 3;
}
mutt_copy_stream (ofp,nfp);
- fclose (nfp);
- fclose (ofp);
+ safe_fclose (&nfp);
+ safe_fclose (&ofp);
mutt_unlink (oldfile);
return 0;
}