aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-parse.c
diff options
context:
space:
mode:
authorLeo Uino <leo@norisys.jp>2011-07-15 15:12:53 +0900
committerLeo Uino <leo@norisys.jp>2011-07-15 20:22:30 +0900
commitbea5cbf43b7074fe59c400edaa294153d18fb325 (patch)
treee685dfe7273346343f6879a27c189b3d5b62ffa5 /lpg/libqr/code-parse.c
parentf7133a8a56650a2e5cefc66b6d9b87809a890b2e (diff)
downloadpdf-simple-sign-bea5cbf43b7074fe59c400edaa294153d18fb325.tar.gz
pdf-simple-sign-bea5cbf43b7074fe59c400edaa294153d18fb325.tar.xz
pdf-simple-sign-bea5cbf43b7074fe59c400edaa294153d18fb325.zip
Fix incorrect allocation size
Diffstat (limited to 'lpg/libqr/code-parse.c')
-rw-r--r--lpg/libqr/code-parse.c2
1 files changed, 1 insertions, 1 deletions
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;