This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r186596 - in /trunk/gcc: ChangeLog genmodes.c


Author: meyering
Date: Thu Apr 19 13:51:17 2012
New Revision: 186596

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186596
Log:
genmodes: remove misleading use of strncpy

* genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
We verified above that the string(including trailing NUL) fits in buf,
so just use memcpy.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/genmodes.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]