143a144
> char *start = dst;
148,149c149
< len++;
< } while (len < maxlen && dst[len] != 0 );
---
> } while (len < maxlen && start[len++] != 0 );