From 2135536e35cc17b47705e5f87513fd2c6ad4c2e6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 8 Jan 1997 17:27:33 +0000 Subject: [PATCH] Change to cover gcc modification. --- vh.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 ";" -- 2.43.0