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

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

 



> > ---
> >   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);
> 'ACK.

And I pushed this too, thanks.

Jirka

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]