matrix-data: Only use as many bytes as necessary to initialize string.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 2 Jan 2019 22:46:11 +0000 (14:46 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 2 Jan 2019 22:50:14 +0000 (14:50 -0800)
commit2f3fa7ce38a527554595db9bc51c465da6fb894c
tree7fd54d3f3978622c780d78e8e9ef02dfdcfe86e6
parent27ffaa338454a769afb0744fdb0f9102ffdee600
matrix-data: Only use as many bytes as necessary to initialize string.

Using strncpy() of a 9-character string to initialize an 8-byte field is
odd and seems likely to have been a mistake, although a harmless one.
This makes the situation seem less odd.

Found by GCC 4.9.
src/language/data-io/matrix-data.c