]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
#include <libgen.h>! Without this it was craching at basename (argv[0]) on 64 bit...
authorhadaq <hadaq>
Tue, 17 Jun 2008 18:51:06 +0000 (18:51 +0000)
committerhadaq <hadaq>
Tue, 17 Jun 2008 18:51:06 +0000 (18:51 +0000)
hadaq/evtbuild.c

index 697091a71c3852f2ab109a352839dd1652161282..2625a48a6fca1c072a79858d7cb6116acf7e7eef 100644 (file)
@@ -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 <syslog.h>
 
 #include <stdint.h>
+#include <libgen.h>
 
 #include <allParam.h>
 
@@ -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", &paramWasFound, &my->nrOfMsgs);
   Param_getStringArray (param, name, "slwctrlfile", PARAM_MAX_ARRAY_LEN,
                        &my->slowCtrlFileCnt, my->slowCtrlFiles);