From: Dan Carpenter Date: Thu, 22 Jul 2010 08:52:02 +0000 (+0200) Subject: ath5k: snprintf() returns largish values X-Git-Tag: v2.6.36-rc1~571^2~64^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2189d13f6cfc58627a01d6a91591e59a2fa62902;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed