diff --git a/textscreen/txt_label.c b/textscreen/txt_label.c index 61df188d..191064cd 100644 --- a/textscreen/txt_label.c +++ b/textscreen/txt_label.c @@ -113,7 +113,7 @@ txt_widget_class_t txt_label_class = NULL, }; -void TXT_SetLabel(txt_label_t *label, char *value) +void TXT_SetLabel(txt_label_t *label, const char *value) { char *p; unsigned int y; diff --git a/textscreen/txt_label.h b/textscreen/txt_label.h index 3786843a..546e83e6 100644 --- a/textscreen/txt_label.h +++ b/textscreen/txt_label.h @@ -58,7 +58,7 @@ txt_label_t *TXT_NewLabel(char *label); * @param value The string to display (UTF-8 format). */ -void TXT_SetLabel(txt_label_t *label, char *value); +void TXT_SetLabel(txt_label_t *label, const char *value); /** * Set the background color of a label widget.