[hackers] [sbase] Fix getrhs() || Roberto E. Vargas Caballero
commit a19aad7c70b19e20986311e381c5c80e8b840b15
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Dec 14 15:40:20 2015 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Mon Dec 14 14:52:53 2015 +0000
Fix getrhs()
getrhs() must not interpret escapes, because in other case
addsub() will not be able to see the escaped characters.
diff --git a/ed.c b/ed.c
index 1944fae..f24c55a 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -877,12 +877,6 @@ getrhs(int delim)
s = NULL;
siz = cap = 0;
while ((c = input()) != '\n' && c != EOF && c != delim) {
- if (c == '\\') {
- if (isdigit(c = input())) {
- back(c);
- c = '\\';
- }
- }
s = addchar(c, s, &siz, &cap);
}
s = addchar('\0', s, &siz, &cap);
Received on Mon Dec 14 2015 - 15:52:59 CET
This archive was generated by hypermail 2.3.0
: Mon Dec 14 2015 - 16:00:21 CET