diff --git a/textscreen/txt_radiobutton.c b/textscreen/txt_radiobutton.c index e165ff2c..31d9fb9d 100644 --- a/textscreen/txt_radiobutton.c +++ b/textscreen/txt_radiobutton.c @@ -135,7 +135,7 @@ txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value) return radiobutton; } -void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value) +void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value) { free(radiobutton->label); radiobutton->label = strdup(value); diff --git a/textscreen/txt_radiobutton.h b/textscreen/txt_radiobutton.h index ec5eead8..9e550733 100644 --- a/textscreen/txt_radiobutton.h +++ b/textscreen/txt_radiobutton.h @@ -72,7 +72,7 @@ txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value); * @param value The new label (UTF-8 format). */ -void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value); +void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, const char *value); #endif /* #ifndef TXT_RADIOBUTTON_H */