From ee366afbf1c9e821af9b86545da6ae1ce48d68e0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Torbj=C3=B6rn=20SVENSSON?= Date: Fri, 9 Jun 2023 16:09:54 +0200 Subject: [PATCH] * src/w32/compat/posixfcn.c (ttyname): Avoid const char* --- src/w32/compat/posixfcn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/w32/compat/posixfcn.c b/src/w32/compat/posixfcn.c index 314abe73..72fe5f2e 100644 --- a/src/w32/compat/posixfcn.c +++ b/src/w32/compat/posixfcn.c @@ -147,5 +147,6 @@ ttyname (int fd UNUSED) sophisticated implementation should test whether FD is open for input or output. We can do that by looking at the mode returned by GetConsoleMode. */ - return "CONOUT$"; + static char name[] = "CONOUT$"; + return name; } -- 2.47.2