X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c4ae1ca64bb43a0ddad6c4984d317e5b751529bf..fe4ef2d22bcc1b89f16c30480f7bff4348d1a014:/netdissect.c diff --git a/netdissect.c b/netdissect.c index 3a6eb0f3..450bb1a2 100644 --- a/netdissect.c +++ b/netdissect.c @@ -23,12 +23,13 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include - +#include "netdissect-stdinc.h" #include "netdissect.h" +#include +#include #ifdef USE_LIBSMI #include @@ -74,7 +75,7 @@ nd_init(char *errbuf, size_t errbuf_size) * Clears the error buffer, and uses it so we don't get * "unused argument" warnings at compile time. */ - snprintf(errbuf, errbuf_size, ""); + strlcpy(errbuf, "", errbuf_size); return (0); }