drivers: wireless: Fix buffer overrun in gs2200m.c
Warning ID: 85719.12039200 Reviewed-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com> Signed-off-by: Kazuya Hioki <Kazuya.Hioki@sony.com>
This commit is contained in:
parent
4f1258f727
commit
075334cfcc
@ -325,7 +325,7 @@ static uint16_t _to_uint16(char *str)
|
||||
uint16_t ret = 0;
|
||||
int n;
|
||||
|
||||
n = sscanf(str, "%04d", &ret);
|
||||
n = sscanf(str, "%04hu", &ret);
|
||||
ASSERT(1 == n);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user