iio.c: Replace sprintf with snprintf