From ebe67baad043c3b50ffff6f5c5116259c231b98b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 21 Mar 2022 15:37:04 +0100 Subject: fix warning/error on format security --- netlink-notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2