summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2013-09-19 14:36:39 +0200
committerSven Eden <yamakuzure@gmx.net>2013-09-19 14:36:39 +0200
commit7f75f89ccdb4a80ed469db1a2fe81a12bad49450 (patch)
tree557c48f07a8d5433561ca51fcda610caf6843822 /ufed-curses-types.c
parentThe length of the first part must always be added to the position in the seco... (diff)
downloadufed-7f75f89ccdb4a80ed469db1a2fe81a12bad49450.tar.gz
ufed-7f75f89ccdb4a80ed469db1a2fe81a12bad49450.tar.bz2
ufed-7f75f89ccdb4a80ed469db1a2fe81a12bad49450.zip
Fixed stray 0-bytes that the wrapped description display accidently inserted.
Diffstat (limited to 'ufed-curses-types.c')
-rw-r--r--ufed-curses-types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufed-curses-types.c b/ufed-curses-types.c
index 9d59234..e6b1139 100644
--- a/ufed-curses-types.c
+++ b/ufed-curses-types.c
@@ -573,7 +573,7 @@ static void calculateDescWrap(sDesc* desc)
end = wLen - 1;
// Step 2: Find last space character before end+1
- if ((end > start) && (end < (wLen - 1)) && (' ' != pch[end])) {
+ if ((end > start) && (' ' != pch[end])) {
size_t newEnd = end;
for (; (newEnd > start) && (' ' != pch[newEnd]) ; --newEnd) ;
if (newEnd > start)