aboutsummaryrefslogtreecommitdiff
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
commit2bec096decd8d735c2b00aa4f2aaf5b050dc17af (patch)
tree83e6a470e22cabe0663848d9d35b2edecd242e40
parent1d543d93c12e3e308b31223bfe7ade058abae3ac (diff)
downloadwork-tools-2bec096decd8d735c2b00aa4f2aaf5b050dc17af.tar.gz
work-tools-2bec096decd8d735c2b00aa4f2aaf5b050dc17af.tar.xz
work-tools-2bec096decd8d735c2b00aa4f2aaf5b050dc17af.zip
Fix incorrect allocation size
-rw-r--r--libqr/code-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqr/code-parse.c b/libqr/code-parse.c
index 8e36a15..d4a2538 100644
--- a/libqr/code-parse.c
+++ b/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;