Skip to content

Commit

Permalink
WMI: fix wmi_gtoa() to actully terminate the string
Browse files Browse the repository at this point in the history
Courtesy of sparse...

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Dmitry Torokhov authored and Matthew Garrett committed Oct 21, 2010
1 parent 2d5ab55 commit 4e4304d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4e4304d

Please sign in to comment.