From 1349e7a3e3dc15a9ac5e571a3b941bf6883cf8bb Mon Sep 17 00:00:00 2001 From: Leo Howell Date: Mon, 28 Sep 2009 23:40:34 +0900 Subject: apply (incorrect!) mask to generated code --- lpg/libqr/qr-bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lpg/libqr/qr-bitmap.c') diff --git a/lpg/libqr/qr-bitmap.c b/lpg/libqr/qr-bitmap.c index 1a5ca52..2bd0c50 100644 --- a/lpg/libqr/qr-bitmap.c +++ b/lpg/libqr/qr-bitmap.c @@ -29,7 +29,7 @@ struct qr_bitmap * qr_bitmap_create(int width, int height, int masked) out->mask = malloc(out->stride * width); if (!out->mask) goto fail; - memset(out->bits, 0xFF, size); + memset(out->mask, 0xFF, size); } return out; -- cgit v1.2.3-70-g09d2