Null-terminate after strncpy.

Coverity CID 30214.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>