aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/code-create.c
diff options
context:
space:
mode:
authorLeo Howell <leo@lwh.jp>2009-09-15 19:03:26 +0900
committerLeo Howell <leo@lwh.jp>2009-09-15 19:03:26 +0900
commit69b03a15eb048c05b31a5cc6128c27acc77c1dd5 (patch)
tree8dd420a26beab201db8b59d785adbd025727cd4e /lpg/libqr/code-create.c
parent55d8ac4768d03001b746ce0af0ad0e15031e4041 (diff)
downloadpdf-simple-sign-69b03a15eb048c05b31a5cc6128c27acc77c1dd5.tar.gz
pdf-simple-sign-69b03a15eb048c05b31a5cc6128c27acc77c1dd5.tar.xz
pdf-simple-sign-69b03a15eb048c05b31a5cc6128c27acc77c1dd5.zip
Figure out how to encode RS
Diffstat (limited to 'lpg/libqr/code-create.c')
-rw-r--r--lpg/libqr/code-create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lpg/libqr/code-create.c b/lpg/libqr/code-create.c
index 484dbe3..389dcd5 100644
--- a/lpg/libqr/code-create.c
+++ b/lpg/libqr/code-create.c
@@ -31,13 +31,13 @@ static int add_ecc(struct bitstream * bits, int format, enum qr_ec_level ec)
puts("Before ecc:");
x_dump(bits);
{
- const int g[10] = { 251, 67, 61, 118, 70, 64, 94, 32, 45 };
int rs_words = 10; /* 1-M */
struct bitstream * rs;
- rs = rs_generate_words(rs_words, g, bits);
+ rs = rs_generate_words(rs_words, bits);
puts("ecc part:");
x_dump(rs);
+ bitstream_destroy(rs);
}
return -1;
}