Index: sword-1.5.9/src/utilfuns/swbuf.cpp =================================================================== --- sword-1.5.9.orig/src/utilfuns/swbuf.cpp 2006-12-08 15:51:36.000000000 +0000 +++ sword-1.5.9/src/utilfuns/swbuf.cpp 2006-12-08 15:52:19.000000000 +0000 @@ -98,7 +98,7 @@ if (max < 0) max = strlen(str); assureMore(max+1); - for (;((*str)&&(max));max--) + for (;((max)&&(*str));max--) *end++ = *str++; *end = 0; }