Skip to content

Commit f3c7fa6

Browse files
committed
Fix constness of msGetPath() argument
1 parent 9c7ca89 commit f3c7fa6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mapserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ void msPopulateTextSymbolForLabelAndString(textSymbolObj *ts, labelObj *l, char
22282228
MS_DLL_EXPORT void msReplaceChar(char *str, char old, char sznew);
22292229
MS_DLL_EXPORT char *msCaseReplaceSubstring(char *str, const char *old, const char *sznew);
22302230
MS_DLL_EXPORT char *msStripPath(char *fn);
2231-
MS_DLL_EXPORT char *msGetPath(char *fn);
2231+
MS_DLL_EXPORT char *msGetPath(const char *fn);
22322232
MS_DLL_EXPORT char *msBuildPath(char *pszReturnPath, const char *abs_path, const char *path);
22332233
MS_DLL_EXPORT char *msBuildPath3(char *pszReturnPath, const char *abs_path, const char *path1, const char *path2);
22342234
MS_DLL_EXPORT char *msTryBuildPath(char *szReturnPath, const char *abs_path, const char *path);

mapstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ char *msStripPath(char *fn)
663663
/*
664664
** Returns the *path* portion of the filename fn. Memory is allocated using malloc.
665665
*/
666-
char *msGetPath(char *fn)
666+
char *msGetPath(const char *fn)
667667
{
668668
char *str;
669669
int i, length;

0 commit comments

Comments
 (0)