From 3ed03921ef791f464a46057f8b2d46104818f425 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Krause Date: Wed, 14 Oct 2020 10:04:10 +0200 Subject: [PATCH] Since the string from strerror should never be modified, use const. --- cmd/lefty/ws/x11/libfilereq/SelFile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lefty/ws/x11/libfilereq/SelFile.c b/cmd/lefty/ws/x11/libfilereq/SelFile.c index 3b596fb14..7383e18ae 100644 --- a/cmd/lefty/ws/x11/libfilereq/SelFile.c +++ b/cmd/lefty/ws/x11/libfilereq/SelFile.c @@ -597,7 +597,7 @@ FILE *SFopenFile (char *name, char *mode, char *prompt, char *failed) { SFchdir (SFstartDir); if ((fp = fopen (name, mode)) == NULL) { char *buf; - char *errormsg = strerror (errno); + const char *errormsg = strerror (errno); if (errormsg) { buf = XtMalloc ( strlen (failed) + strlen (errormsg) + strlen (prompt) + 2 -- 2.40.0