From 33031853dbe5f5acbfc6f67b920a6679caba6a2e Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 17 Jun 2008 18:51:06 +0000 Subject: [PATCH] #include ! Without this it was craching at basename (argv[0]) on 64 bit platform as it assumed that the return value of basename is int (32 bit) but the pointer is 64 bit! Sergey Yurevich. --- hadaq/evtbuild.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hadaq/evtbuild.c b/hadaq/evtbuild.c index 697091a..2625a48 100644 --- a/hadaq/evtbuild.c +++ b/hadaq/evtbuild.c @@ -1,5 +1,5 @@ static char *rcsId = - "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.89 2008-06-16 15:42:41 hadaq Exp $"; + "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.90 2008-06-17 18:51:06 hadaq Exp $"; #define _POSIX_C_SOURCE 199309L @@ -25,6 +25,7 @@ static char *rcsId = #include #include +#include #include @@ -492,6 +493,7 @@ static int argsFromParam (TheArgs *my, int argc, char *argv[]) conSetupParam (param, getenv ("DAQ_SETUP")); name = (char *) basename (argv[0]); + Param_getInt (param, name, "nrofmsgs", ¶mWasFound, &my->nrOfMsgs); Param_getStringArray (param, name, "slwctrlfile", PARAM_MAX_ARRAY_LEN, &my->slowCtrlFileCnt, my->slowCtrlFiles); -- 2.43.0