]> granicus.if.org Git - graphviz/commitdiff
Since the string from strerror should never be modified, use const.
authorPhilipp Klaus Krause <pkk@spth.de>
Wed, 14 Oct 2020 08:04:10 +0000 (10:04 +0200)
committerPhilipp Klaus Krause <pkk@spth.de>
Wed, 14 Oct 2020 08:04:10 +0000 (10:04 +0200)
cmd/lefty/ws/x11/libfilereq/SelFile.c

index 3b596fb14d67c12a70b04089416655262a2ee562..7383e18aeb517d59c783dccc8aec2ea1d84ff1e2 100644 (file)
@@ -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