@@ -1,3 +1,5 @@
+* Cleanup all string parsing to trim excess whitespaces (fixes #268)
+
1.2.17 - http://wraith.botpack.net/milestone/1.2.17
* Binary pass prompt has been changed to be more clear.
* Fix uname checking on NetBSD and OpenBSD
@@ -187,12 +187,17 @@ char *newsplit(char **rest)
register char *o = *rest, *r = NULL;
while (*o == ' ')
- o++;
+ ++o;
r = o;
while (*o && (*o != ' '))
if (*o)
*o++ = 0;
+ /* Trim whitespace */
+ while (*o == ' ')
*rest = o;
return r;
}