From bea5cbf43b7074fe59c400edaa294153d18fb325 Mon Sep 17 00:00:00 2001 From: Leo Uino Date: Fri, 15 Jul 2011 15:12:53 +0900 Subject: Fix incorrect allocation size --- lpg/libqr/code-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lpg/libqr/code-parse.c b/lpg/libqr/code-parse.c index 8e36a15..d4a2538 100644 --- a/lpg/libqr/code-parse.c +++ b/lpg/libqr/code-parse.c @@ -269,7 +269,7 @@ int qr_code_parse(const void * buffer, if (status != 0) goto cleanup; - *data = malloc(sizeof(*data)); + *data = malloc(sizeof(**data)); if (*data == NULL) { status = -1; goto cleanup; -- cgit v1.2.3-70-g09d2