atm: use scnprintf() instead of sprintf()
authorchas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Mon, 17 Dec 2012 06:00:01 +0000 (06:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2012 04:50:51 +0000 (20:50 -0800)
commit3c4177716cd2e452229dd0b7c25d192c48c1e7ac
treedf6fad87e61b45af98d0a2a540bf07318b4a4f7f
parent4e4b53768f1ddce38b7f6edcad3a063020ef0024
atm: use scnprintf() instead of sprintf()

As reported by Chen Gang <gang.chen@asianux.com>, we should ensure there
is enough space when formatting the sysfs buffers.

Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/atm_sysfs.c