From 368cee035c185b0fd10c0b1b80c5b4a57540cc3b Mon Sep 17 00:00:00 2001 From: Dushara Jayasinghe Date: Tue, 29 Aug 2017 09:45:19 +1000 Subject: [PATCH] Fix Segmentation fault on Linux amd64 The version defines which were passed to version.c were incorrectly constructed in the CMakeLists.txt file causing a seg fault when invoking edge -h --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c9ad81c..97ea344 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ if(NOT DEFINED N2N_OPTION_AES) set(N2N_OPTION_AES ON) endif(NOT DEFINED N2N_OPTION_AES) -add_definitions(-DN2N_VERSION='\"${N2N_VERSION}\"' -DN2N_OSNAME='\"${N2N_OSNAME}\"') +add_definitions(-DN2N_VERSION="${N2N_VERSION}" -DN2N_OSNAME="${N2N_OSNAME}") if(N2N_OPTION_AES) add_definitions(-DN2N_HAVE_AES)