aboutsummaryrefslogtreecommitdiff
path: root/crypto/secret.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/secret.c')
-rw-r--r--crypto/secret.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/secret.c b/crypto/secret.c
index 9a9257a7f0..a799da1bdb 100644
--- a/crypto/secret.c
+++ b/crypto/secret.c
@@ -434,7 +434,7 @@ int qcrypto_secret_lookup(const char *secretid,
return -1;
}
- *data = g_new0(uint8, secret->rawlen + 1);
+ *data = g_new0(uint8_t, secret->rawlen + 1);
memcpy(*data, secret->rawdata, secret->rawlen);
(*data)[secret->rawlen] = '\0';
*datalen = secret->rawlen;