add space for terminating zero