From d16be574f3c8c1f4017bd0b0257e230da0a057c8 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Tue, 10 Nov 2015 23:34:46 -0500 Subject: [PATCH] Add stack protection compile flag to Makefile --- Makefile | 2 +- src/qr_code.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f07ace..6781c60 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ CFG_DIR = $(BASE_DIR)/cfg LIBS = libtoxcore ncursesw libconfig libqrencode -CFLAGS = -std=gnu99 -pthread -Wall -g +CFLAGS = -std=gnu99 -pthread -Wall -g -fstack-protector-all CFLAGS += '-DTOXICVER="$(VERSION)"' -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED -D_FILE_OFFSET_BITS=64 CFLAGS += '-DPACKAGE_DATADIR="$(abspath $(DATADIR))"' CFLAGS += $(USER_CFLAGS) diff --git a/src/qr_code.c b/src/qr_code.c index e496c8c..1341126 100644 --- a/src/qr_code.c +++ b/src/qr_code.c @@ -28,7 +28,6 @@ #include "windows.h" #include "qr_code.h" -#define BORDER_CHAR "|" #define BORDER_LEN 1 #define CHAR_1 "\342\226\210" #define CHAR_2 "\342\226\204"