Fixing weird issue with snprintf buffer size