diff options
| author | Dan Carpenter <error27@gmail.com> | 2011-02-09 01:45:13 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-09 11:51:27 -0800 |
| commit | d936435f2082788748ae5783cf2c006367d04bb8 (patch) | |
| tree | aaebcffaaf93b2bfc46da131e2ae283f4ea9fdb0 /include/linux | |
| parent | ec42dc2c7f6a530d16562a061cb3d00a63f8a612 (diff) | |
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 <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
