changeset 37014:01b3cd8a1e76

Simplify string termination.
author ib
date Sat, 29 Mar 2014 14:21:45 +0000
parents 11d2d0444f42
children 68066d733c76
files gui/ui/render.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/render.c	Sat Mar 29 14:09:14 2014 +0000
+++ b/gui/ui/render.c	Sat Mar 29 14:21:45 2014 +0000
@@ -483,7 +483,7 @@
                 l    = (item->textwidth ? item->textwidth : item->width);
                 x    = (l ? l - ((d - DLABEL_DELAY) / 20) % l - 1 : 0);
                 c[0] = *item->text;
-                c[1] = '\0';
+                c[1] = 0;
 
                 if (x < (fntTextWidth(item->fontid, c) + 1) >> 1) {
                     item->starttime = GetTimerMS(); // stop again