[Libvir] UUID buffer lengths [was Re: Virtual networking]
Daniel Veillard
veillard at redhat.com
Tue Jan 23 12:53:33 UTC 2007
On Tue, Jan 23, 2007 at 12:37:50PM +0000, Mark McLoughlin wrote:
> On Tue, 2007-01-23 at 11:20 +0100, Karel Zak wrote:
>
> > + char uuid[37];
> >
> > Magic number? :-)
> >
> > #define UUID_STRLEN 36
> >
> > char uuid[UUID_STRLEN+1];
>
> Good point. Here's a proposed API addition to put the buffer lengths as
> macros in libvirt.h.
>
> Anyone got objections to that?
go for it, even if UUID size really should not change :-)
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard at redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
More information about the libvir-list
mailing list