fix snprintf warnings from gcc 8

In recent versions of gcc, there are a few places where gcc warns:
iio_info.c: In function ‘main’:
iio_info.c:333:41: warning: ‘%u’ directive output may be truncated writing between 1 and 10 bytes into a region of size 7 [-Wformat-truncation=]
      snprintf(repeat, sizeof(repeat), "X%u",
                                         ^~
This fixes the warn by increasing the size of the buffer to 12 from 8.
No functional differences.

Signed-off-by: Robin Getz <robin.getz@analog.com>
diff --git a/channel.c b/channel.c
index 26d8497..e360a63 100644
--- a/channel.c
+++ b/channel.c
@@ -187,7 +187,7 @@
 
 static char * get_scan_element(const struct iio_channel *chn, size_t *length)
 {
-	char buf[1024], repeat[8] = "", *str;
+	char buf[1024], repeat[12] = "", *str;
 	char processed = (chn->format.is_fully_defined ? 'A' - 'a' : 0);
 
 	if (chn->format.repeat > 1)
diff --git a/tests/iio_attr.c b/tests/iio_attr.c
index e4d05d7..03dfcfd 100644
--- a/tests/iio_attr.c
+++ b/tests/iio_attr.c
@@ -644,7 +644,7 @@
 						const struct iio_data_format *format =
 							iio_channel_get_data_format(ch);
 						char sign = format->is_signed ? 's' : 'u';
-						char repeat[8] = "";
+						char repeat[12] = "";
 
 						if (format->is_fully_defined)
 							sign += 'A' - 'a';
diff --git a/tests/iio_info.c b/tests/iio_info.c
index 338ac38..a7ef57f 100644
--- a/tests/iio_info.c
+++ b/tests/iio_info.c
@@ -324,7 +324,7 @@
 				const struct iio_data_format *format =
 					iio_channel_get_data_format(ch);
 				char sign = format->is_signed ? 's' : 'u';
-				char repeat[8] = "";
+				char repeat[12] = "";
 
 				if (format->is_fully_defined)
 					sign += 'A' - 'a';