cleanup: buffer size for snprintf should come from sizeof