foxygit / doom Log in
commit 3166cfd54ce85bdfed3c61dd5c405b4b328bff1b
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Jan 22 18:53:23 2019 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Jan 22 18:53:23 2019 +0200

    misc: Fix const correctness issue in M_BaseName
---
 src/m_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/m_misc.c b/src/m_misc.c
index 27a31099..1f8117be 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -291,7 +291,7 @@ char *M_DirName(const char *path)
 // allocated.
 const char *M_BaseName(const char *path)
 {
-    char *p;
+    const char *p;

     p = strrchr(path, DIR_SEPARATOR);
     if (p == NULL)