maint: s/strncpy/memcpy/, when equivalent
authorJim Meyering <meyering@redhat.com>
Sat, 5 May 2012 09:30:01 +0000 (11:30 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 6 May 2012 07:13:51 +0000 (09:13 +0200)
commitbb3b912b0a43b8b740a05ad1d15686e68f8e3f39
treea78c96ccf2925dd17920b6307c088660264d66ca
parent7020e5f0507f402d5763c5a328d6e11913feced0
maint: s/strncpy/memcpy/, when equivalent

* src/output.c (output_skeleton): Use memcpy, not strncpy,
since the source is known to fit in the destination buffer.
* src/parse-gram.y (%skeleton): Likewise.
src/output.c
src/parse-gram.y