/*
- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1996-2000,2003 Michael R. Elkins <me@mutt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
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;
}