Linus Torvalds
f5028606c2
unifdef: use memcpy instead of strncpy
...
commit 38c7b224ce22c25fed04007839edf974bd13439d upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-08 13:03:35 +01:00
..
2017-08-10 01:01:03 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 09:26:42 +02:00
2018-01-23 19:58:17 +01:00
2017-11-02 11:10:55 +01:00
2018-11-04 14:52:45 +01:00
2017-03-28 16:16:52 +02:00
2018-09-15 09:45:27 +02:00
2018-05-30 07:52:21 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-23 14:17:38 -06:00
2018-05-30 07:52:17 +02:00
2016-04-06 14:06:48 +01:00
2016-12-12 18:55:06 -08:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2017-10-03 17:54:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:06 +01:00
2017-11-02 11:10:55 +01:00
2016-10-11 15:06:30 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-15 09:45:36 +02:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-07 11:12:17 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-07-07 15:09:09 -07:00
2017-05-14 11:20:44 +09:00
2017-08-08 11:09:31 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:33 +01:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2017-10-13 16:18:32 -07:00
2018-09-26 08:37:59 +02:00
2018-02-25 11:07:58 +01:00
2017-11-02 11:10:55 +01:00
2017-11-06 11:46:42 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-05 19:41:19 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-08 13:03:34 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-16 20:23:04 +01:00
2018-03-15 10:54:33 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2017-05-14 11:20:44 +09:00
2017-03-11 11:13:38 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-24 20:51:49 -04:00
2015-11-03 10:45:26 -05:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2017-10-03 17:54:23 -07:00
2017-09-08 10:02:55 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-06 08:42:34 +09:00
2018-12-08 13:03:35 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00