]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: snprintf() returns largish values
authorDan Carpenter <error27@gmail.com>
Thu, 22 Jul 2010 08:50:28 +0000 (10:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 26 Jul 2010 19:32:41 +0000 (15:32 -0400)
commit7feb0c13fea2a42bc38ce75d6e8d7b9ab475ec8d
treeda80f719e9ada0606c0958bea5e32d6132ecb12f
parent6053415a2a291572f3effea5669baa6fbf538317
ath9k: snprintf() returns largish values

The snprintf() function returns the number of characters that would have
been written (not counting the NUL character on the end).  It could
potentially be larger than the size of the buffer.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c