From 5aae478e24547d79cfefac0fe3562dc0b93b7f21 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Thu, 18 Jun 2015 18:45:04 +0200 Subject: [PATCH] bwm-ng: fix building with gcc-security enabled Signed-off-by: Julen Landa Alustiza --- net/bwm-ng/Makefile | 4 ++-- net/bwm-ng/patches/0001-fix-gcc-security-build.patch | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 net/bwm-ng/patches/0001-fix-gcc-security-build.patch diff --git a/net/bwm-ng/Makefile b/net/bwm-ng/Makefile index be017cc05..f2084bec9 100644 --- a/net/bwm-ng/Makefile +++ b/net/bwm-ng/Makefile @@ -1,12 +1,12 @@ # -# Copyright (C) 2014 OpenWrt.org +# Copyright (C) 2014-2015 OpenWrt.org # include $(TOPDIR)/rules.mk PKG_NAME:=bwm-ng PKG_VERSION:=0.6 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.gropp.org/bwm-ng diff --git a/net/bwm-ng/patches/0001-fix-gcc-security-build.patch b/net/bwm-ng/patches/0001-fix-gcc-security-build.patch new file mode 100644 index 000000000..742e45d73 --- /dev/null +++ b/net/bwm-ng/patches/0001-fix-gcc-security-build.patch @@ -0,0 +1,11 @@ +--- a/src/output.c ++++ b/src/output.c +@@ -234,7 +234,7 @@ int print_header(int option) { + if (output_method==PLAIN_OUT && ansi_output) printf("\033[1;2H"); + printf("bwm-ng v" VERSION " (delay %2.3fs); ",(float)delay/1000); + if (output_method==PLAIN_OUT) printf("press 'ctrl-c' to end this%s",(ansi_output ? "\033[2;2H" : "")); else printf("input: "); +- printf(input2str()); ++ printf("%s\n",input2str()); + printf("%s\n",show_all_if2str()); + if (output_method==PLAIN_OUT) { + if (ansi_output)