Forgot to specify the max size for snprintf calls.