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

    Make TXT_MessageBox title character 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 c6db55c5..6c9e7009 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, const char *message, ...)
+txt_window_t *TXT_MessageBox(const 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 055b80f3..55f9980f 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, const char *message, ...);
+txt_window_t *TXT_MessageBox(const char *title, const char *message, ...);

 /**
  * Set the help URL for the given window.