shithub: choc

Download patch

ref: aa555a22c129d5f94456142f3ebab1ebca17b66d
parent: 19a0939300f332e32e6dfc05889651f91e7663c0
author: Turo Lamminen <turotl@gmail.com>
date: Tue Mar 13 15:03:13 EDT 2018

textscreen: Use more const-correct loop in TXT_SetLabel

--- a/textscreen/txt_label.c
+++ b/textscreen/txt_label.c
@@ -131,7 +131,7 @@
 
     label->h = 1;
 
-    for (p = value; *p != '\0'; ++p)
+    for (p = label->label; *p != '\0'; ++p)
     {
         if (*p == '\n')
         {