diff options
author | Andre Heider <a.heider@gmail.com> | 2022-11-18 12:29:44 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-12-15 20:07:49 +0100 |
commit | ccaabb4ea4b11382bffd9fb05558c390c1eb70c4 (patch) | |
tree | 78f04bfab533b1e6915b68bc2a29100a85e51000 /iwinfo_nl80211.c | |
parent | 50380db79b8bc3d57c43354d20626e4040dd589d (diff) | |
download | iwinfo-ccaabb4ea4b11382bffd9fb05558c390c1eb70c4.tar.gz |
fix -Wformat-truncation warnings
Increase buffer sizes to get rid of e.g.:
iwinfo_nl80211.c:797:41: note: 'snprintf' output between 24 and 279 bytes into a destination of size 64
Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'iwinfo_nl80211.c')
-rw-r--r-- | iwinfo_nl80211.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index ba92530..d4d7538 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -240,7 +240,7 @@ static const char *nl80211_phy_path_str(const char *phyname) int prefix_len = strlen(prefix); int buf_len, offset; struct dirent *e; - char buf[128], *link; + char buf[512], *link; int phy_idx; int seq = 0; DIR *d; @@ -297,7 +297,7 @@ static const char *nl80211_phy_path_str(const char *phyname) static int nl80211_phy_idx_from_path(const char *path) { - char buf[128]; + char buf[512]; struct dirent *e; const char *cur_path; int cur_path_len; @@ -736,7 +736,7 @@ nla_put_failure: static char * nl80211_phy2ifname(const char *ifname) { int ifidx = -1, cifidx = -1, phyidx = -1; - char buffer[64]; + char buffer[512]; static char nif[IFNAMSIZ] = { 0 }; DIR *d; |