Use os_snprintf instead of snprintf
This commit is contained in:
parent
94d9bfd59b
commit
e824cc4648
1 changed files with 2 additions and 2 deletions
|
@ -1347,7 +1347,7 @@ static int wpa_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||||
"address, is required.\n");
|
"address, is required.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
snprintf(buf, sizeof(buf), "STA %s", argv[0]);
|
os_snprintf(buf, sizeof(buf), "STA %s", argv[0]);
|
||||||
return wpa_ctrl_command(ctrl, buf);
|
return wpa_ctrl_command(ctrl, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1395,7 +1395,7 @@ static int wpa_cli_cmd_all_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||||
if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr)))
|
if (wpa_ctrl_command_sta(ctrl, "STA-FIRST", addr, sizeof(addr)))
|
||||||
return 0;
|
return 0;
|
||||||
do {
|
do {
|
||||||
snprintf(cmd, sizeof(cmd), "STA-NEXT %s", addr);
|
os_snprintf(cmd, sizeof(cmd), "STA-NEXT %s", addr);
|
||||||
} while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr)) == 0);
|
} while (wpa_ctrl_command_sta(ctrl, cmd, addr, sizeof(addr)) == 0);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue