fix missing string '\0' terminator