From 853f2db0c6a4fea154203eb86b54b7cd889c1fb9 Mon Sep 17 00:00:00 2001 From: mazze Date: Thu, 9 Apr 2009 09:59:33 +0000 Subject: [PATCH] Bugfix to avoid an endless loop. This happened when someone was using "ESC-". git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31086 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/libs/muimaster/textengine.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workbench/libs/muimaster/textengine.c b/workbench/libs/muimaster/textengine.c index 59b3c52d2..f8639b02c 100644 --- a/workbench/libs/muimaster/textengine.c +++ b/workbench/libs/muimaster/textengine.c @@ -248,8 +248,9 @@ static int strlenlf(const char *str) int len = 0; while ((c = *str)) { - if (c=='\n') break; - len++; + if (c=='\n') break; + len++; + str++; } return len; } -- 2.11.4.GIT