From 9172b70462a0dc9ec920916f49bb7fa96ba2dc24 Mon Sep 17 00:00:00 2001 From: Mark Koennecke Date: Thu, 22 May 2014 10:47:39 +0200 Subject: [PATCH] - Fixed a stack smashing bug in statemon.c. String was 1 short... --- sllinux_def | 2 +- statemon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sllinux_def b/sllinux_def index 0e22a767..0ebae7a9 100644 --- a/sllinux_def +++ b/sllinux_def @@ -12,4 +12,4 @@ MFLAGS=-f makefile_linux$(DUMMY) HDFROOT=/afs/psi.ch/project/sinq/sl6 TCLINC=. -DBG= -g +DBG= -g -fstack-protector-all diff --git a/statemon.c b/statemon.c index 8a7a5364..63167f05 100644 --- a/statemon.c +++ b/statemon.c @@ -124,7 +124,7 @@ static int StateInterest(int iEvent, void *pEvent, void *pUser) /*--------------------------------------------------------------------------*/ static pHdb recurseInterestNode(pHdb current, char *pDevice) { - char pSicsdev[131], pAlias[132]; + char pSicsdev[132], pAlias[132]; pHdb result = NULL; char *alias = NULL, *pPtr = NULL;