[hackers] [sbase] ed: fix cmd e/E || Quentin Rameau
commit c5b36e17600920ac1a5d519620be5b38f8f9ed39
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Dec 15 15:13:21 2015 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Wed Dec 16 09:52:35 2015 +0000
ed: fix cmd e/E
Ensure we have a filename before taking further action.
diff --git a/ed.c b/ed.c
index 3f878eb..032bc78 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -1191,8 +1191,8 @@ repeat:
goto unexpected;
if (modflag)
goto modified;
- setscratch();
strcpy(savfname, getfname());
+ setscratch();
deflines(curln, curln);
doread(savfname);
clearundo();
Received on Wed Dec 16 2015 - 10:52:41 CET
This archive was generated by hypermail 2.3.0
: Wed Dec 16 2015 - 11:00:22 CET