aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/data-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/data-parse.c')
-rw-r--r--lpg/libqr/data-parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lpg/libqr/data-parse.c b/lpg/libqr/data-parse.c
index d497bdf..4868cd2 100644
--- a/lpg/libqr/data-parse.c
+++ b/lpg/libqr/data-parse.c
@@ -33,7 +33,7 @@ static enum qr_data_type parse_numeric(const struct qr_data * data,
stream = data->bits;
buffer = 0;
- field_len = get_size_field_length(data->format, QR_DATA_NUMERIC);
+ field_len = get_size_field_length(data->version, QR_DATA_NUMERIC);
if (qr_bitstream_remaining(stream) < field_len)
goto invalid;
@@ -93,7 +93,7 @@ static enum qr_data_type parse_alpha(const struct qr_data * data,
stream = data->bits;
buffer = 0;
- field_len = get_size_field_length(data->format, QR_DATA_ALPHA);
+ field_len = get_size_field_length(data->version, QR_DATA_ALPHA);
if (qr_bitstream_remaining(stream) < field_len)
goto invalid;
@@ -150,7 +150,7 @@ static enum qr_data_type parse_8bit(const struct qr_data * data,
stream = data->bits;
- field_len = get_size_field_length(data->format, QR_DATA_8BIT);
+ field_len = get_size_field_length(data->version, QR_DATA_8BIT);
if (qr_bitstream_remaining(stream) < field_len)
return QR_DATA_INVALID;
@@ -201,7 +201,7 @@ int qr_get_data_length(const struct qr_data * data)
case QR_DATA_ALPHA:
case QR_DATA_8BIT:
case QR_DATA_KANJI:
- field_len = get_size_field_length(data->format, type);
+ field_len = get_size_field_length(data->version, type);
break;
default:
/* unsupported / invalid */