projects
/
org.ibex.util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d5b415
)
string overflow bugfix
author
adam
<adam@megacz.com>
Tue, 11 Jan 2005 08:12:45 +0000
(08:12 +0000)
committer
adam
<adam@megacz.com>
Tue, 11 Jan 2005 08:12:45 +0000
(08:12 +0000)
darcs-hash:
20050111081245
-5007d-
fd2f8884fb46ece3e966ba16a333e442605859ee
.gz
src/org/ibex/util/Log.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/util/Log.java
b/src/org/ibex/util/Log.java
index
2659b26
..
2f69732
100644
(file)
--- 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);