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>
static char * format_channel(int ch)
{
- static char buf[8];
+ static char buf[16];
if (ch <= 0)
snprintf(buf, sizeof(buf), "unknown");
static char * format_txpower(int pwr)
{
- static char buf[10];
+ static char buf[16];
if (pwr < 0)
snprintf(buf, sizeof(buf), "unknown");
static char * format_quality(int qual)
{
- static char buf[8];
+ static char buf[16];
if (qual < 0)
snprintf(buf, sizeof(buf), "unknown");
static char * format_quality_max(int qmax)
{
- static char buf[8];
+ static char buf[16];
if (qmax < 0)
snprintf(buf, sizeof(buf), "unknown");
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;
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;
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;