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:
Kazuya Hioki 2020-05-26 15:11:52 +09:00 committed by Xiang Xiao
parent 4f1258f727
commit 075334cfcc

View File

@ -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;
}