From: Eric S. Raymond Date: Wed, 8 Jan 1997 17:27:33 +0000 (+0000) Subject: Change to cover gcc modification. X-Git-Tag: 1.8~1 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=2135536e35cc17b47705e5f87513fd2c6ad4c2e6;p=vh.git Change to cover gcc modification. --- diff --git a/vh.c b/vh.c index 9529a57..82ceb83 100644 --- a/vh.c +++ b/vh.c @@ -93,6 +93,13 @@ extern int LINES, COLS; /* initialize screen size into these */ #endif #endif /* MSDOS */ #endif /* VHPATH */ + +/* + * Put the default VHPATH into an array so we can safely strtok() it. + */ + +static char vhpath[] = VHPATH; + #define TXT ".txt" #define IDX ".idx" #define TXTLEN 4 @@ -990,7 +997,7 @@ char *name, *path; char tmp[512]; if ((srch = getenv("VHPATH")) == (char *)NULL) - srch = VHPATH; + srch = vhpath; #ifdef MSDOS #define LISTSEP ";"