OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d5ab55
)
WMI: fix wmi_gtoa() to actully terminate the string
author
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Thu, 26 Aug 2010 07:14:53 +0000
(
00:14
-0700)
committer
Matthew Garrett
<mjg@redhat.com>
Thu, 21 Oct 2010 13:36:46 +0000
(09:36 -0400)
Courtesy of sparse...
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/wmi.c
b/drivers/platform/x86/wmi.c
index
8d59699
..
88ce87c
100644
(file)
--- 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)
for (i = 10; i <= 15; i++)
out += sprintf(out, "%02X", in[i] & 0xFF);
- out = '\0';
+
*
out = '\0';
return 0;
}