shithub: choc

Download patch

ref: 90ded64b2b24fb64b31519769a8ceee986c75c44
parent: 5f82ebd75bc5dc6af2ea7325217b002feccef817
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 6 14:50:15 EST 2018

textscreen: Make ExpandExtension parameter const

--- a/textscreen/txt_fileselect.c
+++ b/textscreen/txt_fileselect.c
@@ -523,7 +523,7 @@
 // return a pointer to a string that is a case-insensitive
 // pattern representation (like [Ww][Aa][Dd])
 //
-static char *ExpandExtension(char *orig)
+static char *ExpandExtension(const char *orig)
 {
     int oldlen, newlen, i;
     char *c, *newext = NULL;