On OpenBSD:

```
netutils.c: In function 'np_net_connect':
netutils.c:237: warning: array size (104) smaller than bound length (108)
netutils.c:237: warning: array size (104) smaller than bound length (108)
```

This uses UNIX_PATH_MAX from the macro defined in netutils.h:

```
#ifdef HAVE_SYS_UN_H
# include <sys/un.h>
# ifndef UNIX_PATH_MAX
   /* linux uses this, on sun it's hard-coded at 108 without a define */
#  define UNIX_PATH_MAX 108
# endif /* UNIX_PATH_MAX */
#endif /* HAVE_SYS_UN_H */
```

On at least (Free|Net|Open)BSD, Dragonfly and Apple this is hard-coded at
104 bytes, see http://fxr.watson.org/fxr/search?string=sun_path

-- 
Reply to this email on GitHub:
https://github.com/monitoring-plugins/monitoring-plugins/issues/1267

Reply via email to