From d80689f47847224ca3bef6c11183e0996ee29ab9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 08:33:52 +0200 Subject: test uppercase behex and unhex + fix unhex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/libgamma-facade.c.gpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/libgamma-facade.c.gpp') diff --git a/src/lib/libgamma-facade.c.gpp b/src/lib/libgamma-facade.c.gpp index d380d97..033a7ef 100644 --- a/src/lib/libgamma-facade.c.gpp +++ b/src/lib/libgamma-facade.c.gpp @@ -637,7 +637,7 @@ unsigned char* libgamma_unhex_edid(const char* restrict edid) return errno = EINVAL, NULL; /* Allocate memory area for output octet array. */ - if ((out = malloc(n / 2 * sizeof(unsigned char))) == NULL) + if ((out = malloc(n /= 2 * sizeof(unsigned char))) == NULL) return NULL; /* Convert to raw octet array. */ -- cgit v1.2.3-70-g09d2