<p>On OpenBSD:</p>

<pre><code>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)
</code></pre>

<p>This uses UNIX_PATH_MAX from the macro defined in netutils.h:</p>

<pre><code>#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 */
</code></pre>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1267">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxOTYxNTU2NywiZGF0YSI6eyJpZCI6MzU3ODU4NjV9fQ==--85b53f0471db792fe6e993905c88028167614ea8.gif" width="1" /></p>