projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94d9bfd
)
Use os_snprintf instead of snprintf
author
Jouni Malinen
<jouni.malinen@atheros.com>
Fri, 19 Feb 2010 17:14:41 +0000
(19:14 +0200)
committer
Jouni Malinen
<j@w1.fi>
Fri, 19 Feb 2010 17:14:41 +0000
(19:14 +0200)
wpa_supplicant/wpa_cli.c
patch
|
blob
|
history
diff --git
a/wpa_supplicant/wpa_cli.c
b/wpa_supplicant/wpa_cli.c
index
6cd9c68
..
d3b9e1f
100644
(file)
--- a/
wpa_supplicant/wpa_cli.c
+++ b/
wpa_supplicant/wpa_cli.c
@@
-1347,7
+1347,7
@@
static int wpa_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
"address, is required.\n");
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);
}
@@
-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)))
return 0;
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);
return -1;