From aa555a22c129d5f94456142f3ebab1ebca17b66d Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 13 Mar 2018 19:03:13 +0200 Subject: [PATCH] textscreen: Use more const-correct loop in TXT_SetLabel --- textscreen/txt_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/textscreen/txt_label.c b/textscreen/txt_label.c index e1f845cb..61df188d 100644 --- a/textscreen/txt_label.c +++ b/textscreen/txt_label.c @@ -131,7 +131,7 @@ void TXT_SetLabel(txt_label_t *label, char *value) label->h = 1; - for (p = value; *p != '\0'; ++p) + for (p = label->label; *p != '\0'; ++p) { if (*p == '\n') {