diff options
author | Sławomir Demeszko <s.demeszko@wireless-instruments.com> | 2014-12-17 17:14:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-18 13:04:38 +0100 |
commit | 2fcfe5e7b1dfd8c642f9ef51d1f0b7740828943c (patch) | |
tree | edce694fadd9e2724e4ba70df8435481a5f0c562 | |
parent | b57c0e5af68a65b97aa02b3fc754f40462f2ad80 (diff) |
Fix improper characters after reading Escape code for switching extension table in SMS
Escape code 0x1b is a prefix indicating that next character should be
represented from extension table, but it only applies to one character,
so switching it off is needed to read further characters correctly.
Signed-off-by: SÅ‚awomir Demeszko <s.demeszko@wireless-instruments.com>
-rw-r--r-- | commands-wms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands-wms.c b/commands-wms.c index 6ac52eb..b85cd70 100644 --- a/commands-wms.c +++ b/commands-wms.c @@ -70,6 +70,7 @@ pdu_decode_7bit_char(char *dest, int len, unsigned char c, bool *escape) fprintf(stderr, " %02x", c); dest += len; if (*escape) { + *escape = false; switch(c) { case 0x0A: *dest = 0x0C; |