]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/read.c
gas strncpy warning
authorAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:08:11 +0000 (12:38 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:34:48 +0000 (13:04 +1030)
commit42135cadf5a3097df340eb85e96c0109a9842907
treeab3cc080c902040c0266078b0de725827cd206b2
parentdc1e8a474f904419abaa27da4be5b0f735a87255
gas strncpy warning

Avoid a warning that the buffer may not be zero terminated.

* read.c (read_a_source_file): Call strncpy with length one
less than size of original_case_string.
gas/ChangeLog
gas/read.c