提交 4262ff45 编写于 作者: J Jiri Denemark

util: Fix logical error in virReportSystemErrorFull

上级 5b2c9f92
......@@ -1301,7 +1301,7 @@ void virReportSystemErrorFull(int domcode,
n = vsnprintf(msgDetailBuf, sizeof(msgDetailBuf), fmt, args);
va_end(args);
size_t len = strlen (msgDetailBuf);
size_t len = strlen(errnoDetail);
if (0 <= n && n + 2 + len < sizeof (msgDetailBuf)) {
char *p = msgDetailBuf + n;
stpcpy (stpcpy (p, ": "), errnoDetail);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册