diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c index 1905bc44..1f30fc64 100644 --- a/textscreen/txt_separator.c +++ b/textscreen/txt_separator.c @@ -98,7 +98,7 @@ txt_widget_class_t txt_separator_class = NULL, }; -txt_separator_t *TXT_NewSeparator(char *label) +txt_separator_t *TXT_NewSeparator(const char *label) { txt_separator_t *separator; diff --git a/textscreen/txt_separator.h b/textscreen/txt_separator.h index 5c88938e..665c5a34 100644 --- a/textscreen/txt_separator.h +++ b/textscreen/txt_separator.h @@ -50,7 +50,7 @@ extern txt_widget_class_t txt_separator_class; * @return The new separator widget. */ -txt_separator_t *TXT_NewSeparator(char *label); +txt_separator_t *TXT_NewSeparator(const char *label); /** * Change the label on a separator.