aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-03-21 15:37:04 +0100
committerGravatar Christian Hesse <mail@eworm.de>2022-03-21 15:37:04 +0100
commitebe67baad043c3b50ffff6f5c5116259c231b98b (patch)
tree5062b4953ff55824384d2f3f37921a0393bc7a58
parent87f17dc4f1c0543719fdfca9f614e4a33b167511 (diff)
downloadnetlink-notify-ebe67baad043c3b50ffff6f5c5116259c231b98b.tar.gz
netlink-notify-ebe67baad043c3b50ffff6f5c5116259c231b98b.tar.zst
fix warning/error on format security
-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;