From 53ce4f00e353d2615cb9c160057a77070aa74e0b Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 11 Jan 2005 08:12:45 +0000 Subject: [PATCH] string overflow bugfix darcs-hash:20050111081245-5007d-fd2f8884fb46ece3e966ba16a333e442605859ee.gz --- src/org/ibex/util/Log.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ibex/util/Log.java b/src/org/ibex/util/Log.java index 2659b26..2f69732 100644 --- a/src/org/ibex/util/Log.java +++ b/src/org/ibex/util/Log.java @@ -198,7 +198,7 @@ public class Log { String shortened = s.substring(s.indexOf('(')+1); shortened = shortened.substring(0, shortened.indexOf(')')); m += " " + shortened; - if (ok > 1) m = m.substring(0, 78); + if (ok > 1) m = m.substring(0, Math.min(m.length(), 78)); ok++; } } while (m.length() < 78); -- 1.7.10.4