git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a849854
)
net: fix tiny output corruption of /proc/net/snmp6
author
Alexey Dobriyan
<adobriyan@gmail.com>
Thu, 20 Nov 2008 12:20:10 +0000
(
04:20
-0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 20 Nov 2008 12:20:10 +0000
(
04:20
-0800)
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>
No differences found