diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-08-26 03:14:53 -0400 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2010-10-21 09:36:46 -0400 |
commit | 4e4304d7498c85f6ea798ee5fcb5d3bd3741e74f (patch) | |
tree | fc98cb6fbcdc84b41c21323ef08f4506bd4cae34 /drivers/platform | |
parent | 2d5ab5551f38793f8977114d78a98aad138cfb4e (diff) |
WMI: fix wmi_gtoa() to actully terminate the string
Courtesy of sparse...
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/wmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 8d59699f28e3..88ce87c74e27 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c | |||
@@ -220,7 +220,7 @@ static int wmi_gtoa(const char *in, char *out) | |||
220 | for (i = 10; i <= 15; i++) | 220 | for (i = 10; i <= 15; i++) |
221 | out += sprintf(out, "%02X", in[i] & 0xFF); | 221 | out += sprintf(out, "%02X", in[i] & 0xFF); |
222 | 222 | ||
223 | out = '\0'; | 223 | *out = '\0'; |
224 | return 0; | 224 | return 0; |
225 | } | 225 | } |
226 | 226 | ||