diff options
Diffstat (limited to 'netlink-notify.c')
-rw-r--r-- | netlink-notify.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/netlink-notify.c b/netlink-notify.c index 1dd5ed3..7359e0f 100644 --- a/netlink-notify.c +++ b/netlink-notify.c @@ -1,8 +1,19 @@ /* - * (C) 2011-2019 by Christian Hesse <mail@eworm.de> + * (C) 2011-2024 by Christian Hesse <mail@eworm.de> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. * - * This software may be used and distributed according to the terms - * of the GNU General Public License, incorporated herein by reference. */ #include "netlink-notify.h" @@ -117,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; |