From: Dan Carpenter Date: Tue, 8 Feb 2011 22:45:13 +0000 (+0300) Subject: Staging: rtl8712: fix math errors in snprintf() X-Git-Tag: v2.6.39-rc1~469^2~637 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d936435f2082788748ae5783cf2c006367d04bb8;p=pandora-kernel.git Staging: rtl8712: fix math errors in snprintf() The original code had calls to snprintf(p, 7, "wpa_ie=") but that string is 8 characters (because snprintf() puts a NUL terminator on the end). So instead of an '=' the what gets written to buf is a NUL terminator followed by the rest of the string. And actually the %02x formats are three chars as well when you include the terminator. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed