shithub: choc

Download patch

ref: 10fda2ac5343389de295bfa69aea4c4b0a366f5f
parent: 334232d3b46d15c0169cb2f7080030e4ae4f1253
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:27:18 EDT 2018

Make TXT_MessageBox title character const

--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -566,7 +566,7 @@
     }
 }
 
-txt_window_t *TXT_MessageBox(char *title, const char *message, ...)
+txt_window_t *TXT_MessageBox(const char *title, const char *message, ...)
 {
     txt_window_t *window;
     char buf[256];
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -197,7 +197,7 @@
  * @return                The new window.
  */
 
-txt_window_t *TXT_MessageBox(char *title, const char *message, ...);
+txt_window_t *TXT_MessageBox(const char *title, const char *message, ...);
 
 /**
  * Set the help URL for the given window.