Chen Gang
2e85d67690
net/rds: zero last byte for strncpy
...
for NUL terminated string, need be always sure '\0' in the end.
additional info:
strncpy will pads with zeroes to the end of the given buffer.
should initialise every bit of memory that is going to be copied to userland
Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-08 00:35:44 -05:00
..
2012-01-24 17:03:44 -05:00
2013-02-27 19:10:24 -08:00
2011-10-31 19:30:30 -04:00
2013-02-27 19:10:24 -08:00
2012-12-26 15:17:37 -08:00
2011-09-15 15:36:32 -04:00
2012-12-26 15:17:37 -08:00
2009-04-09 17:21:14 -07:00
2011-06-17 00:03:03 -04:00
2010-09-08 18:12:20 -07:00
2012-04-20 21:22:30 -04:00
2011-10-31 19:30:28 -04:00
2012-11-19 18:59:44 -05:00
2012-03-20 21:48:28 +08:00
2009-02-26 23:39:25 -08:00
2012-03-22 19:29:58 -04:00
2012-01-12 20:05:28 -08:00
2012-03-21 09:40:26 -07:00
2009-04-09 17:21:14 -07:00
2011-06-17 00:03:03 -04:00
2009-09-15 09:39:44 -07:00
2012-04-20 21:22:30 -04:00
2011-10-31 19:30:28 -04:00
2011-06-06 22:55:11 -07:00
2013-01-11 11:40:02 -08:00
2012-03-22 19:29:58 -04:00
2009-02-26 23:39:26 -08:00
2010-11-22 08:16:15 -08:00
2013-03-04 14:12:07 -05:00
2012-07-10 23:13:45 -07:00
2011-10-31 19:30:28 -04:00
2010-10-21 04:26:39 -07:00
2010-11-17 12:20:52 -08:00
2012-03-20 21:48:28 +08:00
2012-07-23 01:01:44 -07:00
2012-10-09 13:57:23 -04:00
2013-03-08 00:35:44 -05:00
2012-04-20 21:22:30 -04:00
2012-08-22 22:52:04 -07:00
2012-08-22 22:52:04 -07:00
2012-08-22 22:52:04 -07:00
2012-08-22 22:52:04 -07:00
2011-07-01 16:16:19 -07:00
2011-10-31 19:30:28 -04:00
2010-10-21 04:26:39 -07:00
2011-10-31 19:30:30 -04:00
2010-09-08 18:16:47 -07:00