foxygit / doom Log in
commit 334232d3b46d15c0169cb2f7080030e4ae4f1253
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:25:51 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200

    Make TXT_MessageBox message parameter const
---
 textscreen/txt_window.c | 2 +-
 textscreen/txt_window.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index aca34e57..c6db55c5 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -566,7 +566,7 @@ void TXT_OpenWindowHelpURL(txt_window_t *window)
     }
 }

-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];
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h
index f9cc4754..055b80f3 100644
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -197,7 +197,7 @@ void TXT_SetMouseListener(txt_window_t *window,
  * @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.