]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
*** empty log message ***
authorhades <hades>
Sun, 12 Sep 1999 10:43:34 +0000 (10:43 +0000)
committerhades <hades>
Sun, 12 Sep 1999 10:43:34 +0000 (10:43 +0000)
hadaq/evt.c

index 1a74f093a9187184b1f42e06c96966543ea83f11..ab7468f6d39816fedd0265f9929c4b955e0ff4bc 100644 (file)
@@ -1,4 +1,4 @@
-static char rcsId[] = "$Id: evt.c,v 6.2 1999-09-09 14:54:44 hades Exp $";
+static char rcsId[] = "$Id: evt.c,v 6.3 1999-09-12 10:43:34 hades Stab $";
 
 #define _ANSI_C_SOURCE
 #include <stddef.h>
@@ -196,7 +196,8 @@ void *Evt_appendSubEvt(void *my, void *subEvt)
 
 void *Evt_fget(FILE * file)
 {
-       static void evt[EVT_MAXSIZE];
+       static char pool[EVT_MAXSIZE];
+       static void *evt = pool;
 
        if (Evt_hdrSize() != fread(evt, 1, Evt_hdrSize(), file)) {
                msglog(LOG_DEBUG, "%s:%d: %s\n", __FILE__, __LINE__, strerror(errno));