From 34f148031a41bd9d2db3a3bd286d8741a7ed1fe9 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Tue, 28 Aug 2018 16:45:55 +0200 Subject: fix and harden overlay options --- src/include/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/common.h b/src/include/common.h index 413cf98a5..a80ad4688 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -32,7 +32,7 @@ #include #include -#define errExit(msg) do { char msgout[500]; sprintf(msgout, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0) +#define errExit(msg) do { char msgout[500]; snprintf(msgout, 500, "Error %s: %s:%d %s", msg, __FILE__, __LINE__, __FUNCTION__); perror(msgout); exit(1);} while (0) // macro to print ip addresses in a printf statement #define PRINT_IP(A) \ -- cgit v1.2.3-54-g00ecf