foxygit / doom Log in
commit aa555a22c129d5f94456142f3ebab1ebca17b66d
Author:     Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:03:13 2018 +0200
Commit:     Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:33:51 2018 +0200

    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')
         {