commit cee24fddf922dd5dfb964df55e3ad29e9fc5e2f7
parent a67537952051707697ccbd4e2deb42304988d442
Author: Frederic Cambus <fred@statdns.com>
Date: Sat, 10 Oct 2020 21:03:48 +0200
Enable FORTIFY_SOURCE level 2.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -51,7 +51,7 @@ if(NOT HAVE_PLEDGE)
set (SRC ${SRC} compat/pledge.c)
endif()
-add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic)
+add_definitions(-D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -std=c99 -pedantic)
add_executable(statzone ${SRC})
install(TARGETS statzone DESTINATION ${CMAKE_INSTALL_BINDIR})