aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netlink-notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index 5927a02..f1926c3 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -128,7 +128,7 @@ void get_ssid(const char *interface, char *essid) {
struct iwreq wreq;
memset(&wreq, 0, sizeof(struct iwreq));
- snprintf(wreq.ifr_name, IFNAMSIZ, interface);
+ snprintf(wreq.ifr_name, IFNAMSIZ, "%s", interface);
wreq.u.essid.pointer = essid;
wreq.u.essid.length = IW_ESSID_MAX_SIZE + 1;