"Ben Morgan" <benpmorgan at gmail.com> writes: > If maxlen is 0, then I believe you should use the string length as the > max length. Thanx, I didn't know that. 2-line fix tested and committed.