@@ -86,7 +86,7 @@ iridium_crypto_unhexlify (const gchar *s, gsize length)
{
guint8 *result;
- result = g_malloc0 (length / 2);
+ result = g_malloc0 (length / 2 + 1);
for (gsize i = 0; i < length / 2; i++)
sscanf (&s[i * 2], "%2hhx", &result[i]);