use null-terminated-character instead of zero

This is a cosmetic change.