diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-11-17 09:17:37 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-11-17 09:17:37 +0100 |
commit | bc7ca0df8f79a76177c3c42d11a1034015ec345f (patch) | |
tree | 6cedd5ca38e8fa40062fa6cb8e53d4b43e572708 | |
parent | typo (diff) | |
download | mds-bc7ca0df8f79a76177c3c42d11a1034015ec345f.tar.gz mds-bc7ca0df8f79a76177c3c42d11a1034015ec345f.tar.bz2 mds-bc7ca0df8f79a76177c3c42d11a1034015ec345f.tar.xz |
missed if statement
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-kbdc/parse-error.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mds-kbdc/parse-error.c b/src/mds-kbdc/parse-error.c index 298c712..dfaf116 100644 --- a/src/mds-kbdc/parse-error.c +++ b/src/mds-kbdc/parse-error.c @@ -73,7 +73,8 @@ void mds_kbdc_parse_error_print(const mds_kbdc_parse_error_t* restrict this, FIL /* Convert bytes count to character count for the code position */ for (i = 0, n = this->start; i < n; i++) - start++; + if ((code[i] & 0xC0) != 0x80) + start++; for (n = this->end; i < n; i++) if ((code[i] & 0xC0) != 0x80) end++; |