Modified a snprintf size problem in custom_io.c