diff --git a/src/sbbs3/con_out.cpp b/src/sbbs3/con_out.cpp index 0063c660b578461103ef0190c0d8206dd5b0625c..b0e05b9f9988bee062f7870666ca33387c2c5c6d 100644 --- a/src/sbbs3/con_out.cpp +++ b/src/sbbs3/con_out.cpp @@ -787,7 +787,7 @@ void sbbs_t::inc_row(int count) } } -void sbbs_t::center(char *instr, unsigned int columns) +void sbbs_t::center(const char *instr, unsigned int columns) { char str[256]; size_t len; diff --git a/src/sbbs3/sbbs.h b/src/sbbs3/sbbs.h index 3f91b74b18ad354c5284398e2e5eb407e2a06530..c40c3492b3a789b5395fe2b679e8fde4fc40ac46 100644 --- a/src/sbbs3/sbbs.h +++ b/src/sbbs3/sbbs.h @@ -759,7 +759,7 @@ public: int outchar(enum unicode_codepoint, const char* cp437_fallback = NULL); void inc_row(int count); void inc_column(int count); - void center(char *str, unsigned int columns = 0); + void center(const char *str, unsigned int columns = 0); void wide(const char*); void clearscreen(long term); void clearline(void);