]> thyrsus.com Git - vh.git/commitdiff
Change to cover gcc modification.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 8 Jan 1997 17:27:33 +0000 (17:27 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 8 Jan 1997 17:27:33 +0000 (17:27 +0000)
vh.c

diff --git a/vh.c b/vh.c
index 9529a576a8a168795cf067253caca7949a0f86cf..82ceb83794cdc063fcea184e68bcb1c83aaaf570 100644 (file)
--- 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        ";"