textscreen: Use more const-correct loop in TXT_SetLabel

This commit is contained in:
Turo Lamminen 2018-03-13 19:03:13 +02:00
parent 19a0939300
commit aa555a22c1

View file

@ -131,7 +131,7 @@ void TXT_SetLabel(txt_label_t *label, char *value)
label->h = 1; label->h = 1;
for (p = value; *p != '\0'; ++p) for (p = label->label; *p != '\0'; ++p)
{ {
if (*p == '\n') if (*p == '\n')
{ {