From 8a337f186d99881114ceefb02a513db48f97408f Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 13 May 2022 07:14:48 -0700 Subject: Bugfix: getln doesn't substitute control chars. The getln function is used for reading configuration; we don't want control characters in the configuration to be replaced with printable characters. --- pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pw.c b/pw.c index 674a710..5e52a6c 100644 --- a/pw.c +++ b/pw.c @@ -279,7 +279,7 @@ static char *getln(FILE *stream) return line; if (ch == '\n') return dsensure(line); - line = addchesc(line, ch); + line = addch(line, ch); } } -- cgit v1.2.3