shithub: choc

Download patch

ref: 3166cfd54ce85bdfed3c61dd5c405b4b328bff1b
parent: 921666f7046ed38ff42fe233d8cd0a5f83578418
author: Turo Lamminen <[email protected]>
date: Tue Jan 22 13:53:23 EST 2019

misc: Fix const correctness issue in M_BaseName

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -291,7 +291,7 @@
 // allocated.
 const char *M_BaseName(const char *path)
 {
-    char *p;
+    const char *p;
 
     p = strrchr(path, DIR_SEPARATOR);
     if (p == NULL)