aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/qmi-codegen/VariableString.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-aux/qmi-codegen/VariableString.py b/build-aux/qmi-codegen/VariableString.py
index db4a915..a127eb7 100644
--- a/build-aux/qmi-codegen/VariableString.py
+++ b/build-aux/qmi-codegen/VariableString.py
@@ -125,7 +125,7 @@ class VariableString(Variable):
'${lp} guint16 aux_buffer_len = ${buffer_len} - ${variable_name};\n'
'\n'
'${lp} qmi_utils_read_guint8_from_buffer (&aux_buffer, &aux_buffer_len, &size8);\n'
- '${lp} ${variable_name} = 1 + size8;\n'
+ '${lp} ${variable_name} += (1 + size8);\n'
'${lp}}\n')
elif self.length_prefix_size == 16:
template = (
@@ -135,7 +135,7 @@ class VariableString(Variable):
'${lp} guint16 aux_buffer_len = ${buffer_len} - ${variable_name};\n'
'\n'
'${lp} qmi_utils_read_guint16_from_buffer (&aux_buffer, &aux_buffer_len, QMI_ENDIAN_LITTLE, &size16);\n'
- '${lp} ${variable_name} = 2 + size16;\n'
+ '${lp} ${variable_name} += (2 + size16);\n'
'${lp}}\n')
f.write(string.Template(template).substitute(translations))