[Libguestfs] [PATCH] ocaml: Fix thread safety of strings in bindings (RHBZ#604691).
Richard W.M. Jones
rjones at redhat.com
Wed Jun 16 14:32:10 UTC 2010
On Wed, Jun 16, 2010 at 03:28:39PM +0100, Richard W.M. Jones wrote:
> - r[i] = String_val (Field (sv, i));
> + r[i] = strdup (String_val (Field (sv, i)));
This should be guestfs_safe_strdup. I changed my local copy
accordingly.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
More information about the Libguestfs
mailing list