aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-03 08:33:52 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-03 08:33:52 +0200
commitd80689f47847224ca3bef6c11183e0996ee29ab9 (patch)
tree0a3fea8ff3e24f596f62f9895796d4431cc4a7a2 /src/lib
parentdoc (diff)
downloadlibgamma-d80689f47847224ca3bef6c11183e0996ee29ab9.tar.gz
libgamma-d80689f47847224ca3bef6c11183e0996ee29ab9.tar.bz2
libgamma-d80689f47847224ca3bef6c11183e0996ee29ab9.tar.xz
test uppercase behex and unhex + fix unhex
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/libgamma-facade.c.gpp2
1 files changed, 1 insertions, 1 deletions
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. */