On Wed, Dec 19, 2012 at 01:59:42PM +0100, Christophe Fergeau wrote:
> Ping?

Time for another ping ;)

> On Fri, Dec 14, 2012 at 05:03:37PM +0100, Christophe Fergeau wrote:
> > This guarantees that the string will be nul-terminated. Coverity
> > warned about this issue.
> > ---
> >  libvirt-gobject/libvirt-gobject-connection.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/libvirt-gobject/libvirt-gobject-connection.c 
> > b/libvirt-gobject/libvirt-gobject-connection.c
> > index 91cc535..0525323 100644
> > --- a/libvirt-gobject/libvirt-gobject-connection.c
> > +++ b/libvirt-gobject/libvirt-gobject-connection.c
> > @@ -1583,7 +1583,7 @@ GVirNodeInfo 
> > *gvir_connection_get_node_info(GVirConnection *conn,
> >      }
> >  
> >      ret = g_slice_new(GVirNodeInfo);
> > -    strncpy (ret->model, info.model, sizeof (ret->model));
> > +    g_strlcpy (ret->model, info.model, sizeof (ret->model));
> >      ret->memory = info.memory;
> >      ret->cpus = info.cpus;
> >      ret->mhz = info.mhz;
> > -- 
> > 1.8.0.2
> > 
> > --
> > libvir-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/libvir-list



> --
> libvir-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: pgp4B7Jffm7QI.pgp
Description: PGP signature

--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to