shithub: choc

Download patch

ref: 334232d3b46d15c0169cb2f7080030e4ae4f1253
parent: 6283e91fbd797eed1720ed5b23512f4c3783227c
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 15:25:51 EDT 2018

Make TXT_MessageBox message parameter const

--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -566,7 +566,7 @@
     }
 }
 
-txt_window_t *TXT_MessageBox(char *title, char *message, ...)
+txt_window_t *TXT_MessageBox(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, char *message, ...);
+txt_window_t *TXT_MessageBox(char *title, const char *message, ...);
 
 /**
  * Set the help URL for the given window.