--- embedaddon/libnet/src/libnet_build_gre.c 2013/07/22 11:54:42 1.1.1.2 +++ embedaddon/libnet/src/libnet_build_gre.c 2023/09/27 11:11:38 1.1.1.3 @@ -28,14 +28,7 @@ * */ -#if (HAVE_CONFIG_H) -#include "../include/config.h" -#endif -#if (!(_WIN32) || (__CYGWIN__)) -#include "../include/libnet.h" -#else -#include "../include/win32/libnet.h" -#endif +#include "common.h" /* * Overall packet @@ -332,7 +325,8 @@ libnet_ptag_t ptag) if ((routing && !length) || (!routing && length)) { - sprintf(l->err_buf, "%s(): routing inconsistency\n", __func__); + snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, + "%s(): routing inconsistency", __func__); goto bad; } @@ -396,4 +390,10 @@ bad: return (-1); } -/* EOF */ + +/** + * Local Variables: + * indent-tabs-mode: nil + * c-file-style: "stroustrup" + * End: + */