From dc@hemeris.com Fri Apr 16 12:04:00 2004
Date: Wed, 14 Apr 2004 14:27:38 +0200
From: Didier Carlier <dc@hemeris.com>
To: Robert G. Brown <rgb@phy.duke.edu>
Subject: wulflogger segfault


wulflogger (0.1.4) crashes on startup in libwulf/parse.c, at line 57, 
or rather within strncpy called from that place.

The trouble is that the "outfields" argument is declared in split() as 
a "char **" but what is passed to it is the "fields" static variable 
from wulfhosts_util.c

That one is declared as:
static char fields[4][K];

I changed that to:
static char f0[K];
static char f1[K];
static char f2[K];
static char f3[K];
static char *fields[] = {f0, f1, f2, f3};

since it seems that fields is always used as a char** and never as a 
char[][].
Not really elegant I know, but I beleive it is more correct and it 
fixes the problem...

Didier
