[Libguestfs] [PATCH 1/2] hivex: Use correct constant in diagnostic error message

Richard W.M. Jones rjones at redhat.com
Fri Feb 7 06:37:18 UTC 2014


On Thu, Feb 06, 2014 at 04:32:35PM +0100, Hilko Bengen wrote:
> ---
>  lib/value.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/value.c b/lib/value.c
> index c4e21ec..f222b41 100644
> --- a/lib/value.c
> +++ b/lib/value.c
> @@ -334,7 +334,7 @@ hivex_value_value (hive_h *h, hive_value_h value,
>    /* Arbitrarily limit the length that we will read. */
>    if (len > HIVEX_MAX_VALUE_LEN) {
>      SET_ERRNO (ERANGE, "data length > HIVEX_MAX_VALUE_LEN (%zu > %d)",
> -               len, HIVEX_MAX_SUBKEYS);
> +               len, HIVEX_MAX_VALUE_LEN);
>      return NULL;
>    }
>  
> -- 
> 1.9.rc1

ACK.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list