Linus Torvalds 38c7b224ce unifdef: use memcpy instead of strncpy
New versions of gcc reasonably warn about the odd pattern of

	strncpy(p, q, strlen(q));

which really doesn't make sense: the strncpy() ends up being just a slow
and odd way to write memcpy() in this case.

There was a comment about _why_ the code used strncpy - to avoid the
terminating NUL byte, but memcpy does the same and avoids the warning.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-11-30 14:45:01 -08:00
..
2018-10-04 14:16:15 -05:00
2017-03-28 16:16:52 +02:00
2018-10-28 13:22:35 -07:00
2012-06-27 12:44:29 -07:00
2018-11-02 22:49:01 +09:00
2017-11-17 17:45:29 -08:00
2018-10-28 13:22:35 -07:00
2017-11-14 18:25:40 -08:00
2017-11-17 17:45:29 -08:00
2018-02-06 18:32:47 -08:00
2017-11-17 17:45:29 -08:00
2014-08-20 16:03:45 +02:00