[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] util: Fix logical error in virReportSystemErrorFull



---
 src/util/virterror.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/virterror.c b/src/util/virterror.c
index 6e49fa2..b912737 100644
--- a/src/util/virterror.c
+++ b/src/util/virterror.c
@@ -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);
-- 
1.7.3.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]