Fixed null-termination bug.