On 03/30/2010 10:20 AM, Matthias Bolte wrote: > @@ -861,8 +862,10 @@ openvzGetVPSUUID(int vpsid, char *uuidstr, size_t len) > break; > } > > - sscanf(line, "%s %s\n", iden, uuidbuf); > - if(STREQ(iden, "#UUID:")) { > + iden = strtok_r(line, " ", &saveptr); > + uuidbuf = strtok_r(NULL, "", &saveptr); > + > + if (iden != NULL && uuidbuf != NULL && STREQ(iden, "#UUID:")) { ACK. -- Eric Blake eblake@xxxxxxxxxx +1-801-349-2682 Libvirt virtualization library http://libvirt.org
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list