mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-04 00:24:26 +03:00
cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3979 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6ad82142c0
commit
8ad3b78626
15
src/files.c
15
src/files.c
@ -802,8 +802,8 @@ void do_insertfile(
|
|||||||
|
|
||||||
answer_len = strlen(answer);
|
answer_len = strlen(answer);
|
||||||
|
|
||||||
/* Convert newlines to nulls, just before we execute a
|
/* Convert newlines to nulls, just before we insert a file
|
||||||
* command. */
|
* or execute a command. */
|
||||||
sunder(answer);
|
sunder(answer);
|
||||||
|
|
||||||
#ifndef NANO_TINY
|
#ifndef NANO_TINY
|
||||||
@ -1310,16 +1310,7 @@ int write_file(const char *name, FILE *f_open, bool tmp, append_type
|
|||||||
if (!tmp)
|
if (!tmp)
|
||||||
titlebar(NULL);
|
titlebar(NULL);
|
||||||
|
|
||||||
realname = mallocstrcpy(NULL, name);
|
realname = real_dir_from_tilde(name);
|
||||||
|
|
||||||
/* Convert newlines to nulls, just before we get the tilde-expanded
|
|
||||||
* filename. */
|
|
||||||
sunder(realname);
|
|
||||||
|
|
||||||
if (realname[0] == '\0')
|
|
||||||
goto cleanup_and_exit;
|
|
||||||
|
|
||||||
realname = mallocstrassn(realname, real_dir_from_tilde(realname));
|
|
||||||
|
|
||||||
#ifndef DISABLE_OPERATINGDIR
|
#ifndef DISABLE_OPERATINGDIR
|
||||||
/* If we're writing a temporary file, we're probably going outside
|
/* If we're writing a temporary file, we're probably going outside
|
||||||
|
Loading…
Reference in New Issue
Block a user