From 63194b876a58169d594f00a888920ef1551d5a53 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 15 May 2017 21:04:58 -0700 Subject: [PATCH] matrix-reader: Use strcpy() on char arrays, in next_matrix_from_reader(). Fixes GCC warning "pointer targets in passing argument 1 of 'strcpy' differ in signedness". --- src/language/data-io/matrix-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/data-io/matrix-reader.c b/src/language/data-io/matrix-reader.c index 02970c994e..ce04dc496e 100644 --- a/src/language/data-io/matrix-reader.c +++ b/src/language/data-io/matrix-reader.c @@ -204,7 +204,7 @@ next_matrix_from_reader (struct matrix_material *mm, for (i = 0; i < n_vars; ++i) { const int w = var_get_width (mr->varname); - uint8_t s[w]; + char s[w]; memset (s, 0, w); const char *name = var_get_name (vars[i]); strcpy (s, name); -- 2.30.2