From af9f56a09df90e07bd3ba33e2583b30fd77f3e0f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 30 Mar 2005 19:34:20 +0000 Subject: [PATCH] dropped the "const" from the return value of safe_fname() because some callers would like to manipulate the string in the buffer. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index ab0e151b..b20cdb64 100644 --- a/util.c +++ b/util.c @@ -882,7 +882,7 @@ int pop_dir(char *dir) * empty line. This function can return only MAX_SAFE_NAMES values at a * time! The returned value can be longer than MAXPATHLEN (because we * may be trying to output an error about a too-long filename)! */ -const char *safe_fname(const char *fname) +char *safe_fname(const char *fname) { #define MAX_SAFE_NAMES 4 static char fbuf[MAX_SAFE_NAMES][MAXPATHLEN*2]; -- 2.11.4.GIT