aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-12-26 21:41:24 (GMT)
committerJouni Malinen <j@w1.fi>2006-12-26 21:41:24 (GMT)
commit90c490452b3c940c3ffeafcb721a3bfa36664125 (patch)
tree28d92a8cb54737413c6a5f2a249e1739ad765336 /hostapd
parent079ee7789a2c587247954e617b30b04fdc5aa051 (diff)
downloadhostap-history-90c490452b3c940c3ffeafcb721a3bfa36664125.zip
hostap-history-90c490452b3c940c3ffeafcb721a3bfa36664125.tar.gz
hostap-history-90c490452b3c940c3ffeafcb721a3bfa36664125.tar.bz2
Replaced a snprintf() call with os_strlcpy() since os_*.o is now
linked into hostapd_cli.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/hostapd_cli.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index abde6ce..3d10c4a 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -1,6 +1,6 @@
/*
* hostapd - command line interface for hostapd daemon
- * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
+ * Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -16,12 +16,13 @@
#include <dirent.h>
#include "wpa_ctrl.h"
+#include "common.h"
#include "version.h"
static const char *hostapd_cli_version =
"hostapd_cli v" VERSION_STR "\n"
-"Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi> and contributors";
+"Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi> and contributors";
static const char *hostapd_cli_license =
@@ -260,7 +261,7 @@ static int wpa_ctrl_command_sta(struct wpa_ctrl *ctrl, char *cmd,
while (*pos != '\0' && *pos != '\n')
pos++;
*pos = '\0';
- snprintf(addr, addr_len, "%s", buf);
+ os_strlcpy(addr, buf, addr_len);
return 0;
}