From 3ed9e4d1b9bc97a577df3d9679959ad7e839cd9d Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Tue, 8 Jan 2013 07:18:50 +0000 Subject: unposted: tweak 30949 to fix buffer pointer --- Src/builtin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index f5c727f47..f13167f33 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -5491,8 +5491,7 @@ bin_read(char *name, char **args, Options ops, UNUSED(int func)) else eof = (bptr - buf != 1 || (buf[0] != 'y' && buf[0] != 'Y')); buf[0] = eof ? 'n' : 'y'; - buf[1] = 0; - bptr = buf+2; + bptr = buf + 1; } if (OPT_ISSET(ops,'e') || OPT_ISSET(ops,'E')) fwrite(buf, bptr - buf, 1, stdout); -- cgit 1.4.1