diff options
Diffstat (limited to 'src/gsmd')
-rw-r--r-- | src/gsmd/vendor_wavecom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gsmd/vendor_wavecom.c b/src/gsmd/vendor_wavecom.c index 18253db..b1b6929 100644 --- a/src/gsmd/vendor_wavecom.c +++ b/src/gsmd/vendor_wavecom.c @@ -75,9 +75,9 @@ static int cced_parse(const char *buf, int len, const char *param, TOK_OR_OUT(tok); aux->u.cell_info.mnc = atoi(tok); TOK_OR_OUT(tok); - sscanf(tok, "%x", &aux->u.cell_info.lac); + sscanf(tok, "%hx", &aux->u.cell_info.lac); TOK_OR_OUT(tok); - sscanf(tok, "%x", &aux->u.cell_info.ci); + sscanf(tok, "%hx", &aux->u.cell_info.ci); TOK_OR_OUT(tok); aux->u.cell_info.bsic = atoi(tok); TOK_OR_OUT(tok); @@ -109,9 +109,9 @@ static int cced_parse(const char *buf, int len, const char *param, TOK_OR_OUT(tok); aux->u.cell_info.mnc = atoi(tok); TOK_OR_OUT(tok); - sscanf(tok, "%x", &aux->u.cell_info.lac); + sscanf(tok, "%hx", &aux->u.cell_info.lac); TOK_OR_OUT(tok); - sscanf(tok, "%x", &aux->u.cell_info.ci); + sscanf(tok, "%hx", &aux->u.cell_info.ci); TOK_OR_OUT(tok); aux->u.cell_info.bsic = atoi(tok); TOK_OR_OUT(tok); |