Do not snprintf() into one-byte string

This fixes a segmentation fault on startup.