Skip to content
Permalink
Browse files
Fix constness of msGetPath() argument
  • Loading branch information
rouault committed Sep 30, 2019
1 parent 9c7ca89 commit f3c7fa6c3bcb99bc1017c7c70a56fda1da8913d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -2228,7 +2228,7 @@ void msPopulateTextSymbolForLabelAndString(textSymbolObj *ts, labelObj *l, char
MS_DLL_EXPORT void msReplaceChar(char *str, char old, char sznew);
MS_DLL_EXPORT char *msCaseReplaceSubstring(char *str, const char *old, const char *sznew);
MS_DLL_EXPORT char *msStripPath(char *fn);
MS_DLL_EXPORT char *msGetPath(char *fn);
MS_DLL_EXPORT char *msGetPath(const char *fn);
MS_DLL_EXPORT char *msBuildPath(char *pszReturnPath, const char *abs_path, const char *path);
MS_DLL_EXPORT char *msBuildPath3(char *pszReturnPath, const char *abs_path, const char *path1, const char *path2);
MS_DLL_EXPORT char *msTryBuildPath(char *szReturnPath, const char *abs_path, const char *path);
@@ -663,7 +663,7 @@ char *msStripPath(char *fn)
/*
** Returns the *path* portion of the filename fn. Memory is allocated using malloc.
*/
char *msGetPath(char *fn)
char *msGetPath(const char *fn)
{
char *str;
int i, length;

0 comments on commit f3c7fa6

Please sign in to comment.