Replace 0 with '\0' as nul terminated string.
Merge pull request #1360 from suzukaze/refactor-string.c

Replace 0 with '\0' as nul terminated string.