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

Re: [Libguestfs] [PATCH] ocaml: Fix thread safety of strings in bindings (RHBZ#604691).



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/


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