commit | 2189d13f6cfc58627a01d6a91591e59a2fa62902 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Thu Jul 22 10:52:02 2010 +0200 |
committer | John W. Linville <linville@tuxdriver.com> | Mon Jul 26 15:32:41 2010 -0400 |
tree | 4d5613993d0e19b2f0c04d4df89061f20a80782a | |
parent | 9746010bd3c825d364b783b327990d25962657dd [diff] |
ath5k: snprintf() returns largish values snprintf() returns the number of characters that would have been written (not counting the NUL character). So we can't use it as the limiter to simple_read_from_buffer() without capping it first at sizeof(buf). Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>