]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix tiny output corruption of /proc/net/snmp6
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 20 Nov 2008 12:20:10 +0000 (04:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 12:20:10 +0000 (04:20 -0800)
commitaa7464e0d0aa40f5fe6479b8fccec96703bd5744
treecf8ebb119403f92df8a296002b9316c9fa38a8a6
parent9ee83543d6e1109332bc05969b49b732315545a6
net: fix tiny output corruption of /proc/net/snmp6

Because "name" is static, it can be occasionally be filled with
somewhat garbage if two processes read /proc/net/snmp6.

Also, remove useless casts and "-1" -- snprintf() correctly terminates it's
output.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/proc.c