提交 4e4304d7 编写于 作者: D Dmitry Torokhov 提交者: Matthew Garrett

WMI: fix wmi_gtoa() to actully terminate the string

Courtesy of sparse...
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 2d5ab555
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册