commit | 3db02389f4bf45863b9c096a9efc477680f94a48 | [log] [tgz] |
---|---|---|
author | David Lawrence Ramsey <pooka109@gmail.com> | Sun Jun 05 19:18:11 2005 +0000 |
committer | David Lawrence Ramsey <pooka109@gmail.com> | Sun Jun 05 19:18:11 2005 +0000 |
tree | fe73880beb17ce57870dbaa635da31223d363b51 | |
parent | cc81436f8193c57fafd5e79896b11964886a563f [diff] |
in safe_tempfile(), open a newly created temporary file in "r+b" mode instead of "w+b" mode, since the latter truncates the file if it already exists, and we don't need to do that since it's an error if the file already exists git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2593 35c25a1d-7b9e-4130-9fde-d3aeb78583b8