projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af52460
)
matrix-reader: Use strcpy() on char arrays, in next_matrix_from_reader().
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 16 May 2017 04:04:58 +0000
(21:04 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 16 May 2017 04:04:58 +0000
(21:04 -0700)
Fixes GCC warning "pointer targets in passing argument 1 of 'strcpy'
differ in signedness".
src/language/data-io/matrix-reader.c
patch
|
blob
|
history
diff --git
a/src/language/data-io/matrix-reader.c
b/src/language/data-io/matrix-reader.c
index 02970c994ec71facf88d38dedb606671bfd15d87..ce04dc496e4348ccba7836988fd33eb05c2bb51b 100644
(file)
--- 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);