1 diff -Nru bvi-1.3.1/io.c bvi-1.3.1.new/io.c
2 --- bvi-1.3.1/io.c Tue Dec 25 13:37:38 2001
3 +++ bvi-1.3.1.new/io.c Sun Mar 23 19:07:37 2003
9 + char *etc_dir = getenv("ETC_DIR");
11 terminal = getenv("TERM");
12 shell = getenv("SHELL");
13 if (shell == NULL || *shell == '\0')
18 - strncpy(rcpath, getenv("HOME"), MAXCMD - 8);
19 - rcpath[MAXCMD - 8] = '\0';
20 - strcat(rcpath, "/.bvirc");
22 + strncpy(rcpath, etc_dir, MAXCMD - 7);
23 + rcpath[MAXCMD - 7] = '\0';
24 + strcat(rcpath, "/bvirc");
26 + strncpy(rcpath, getenv("HOME"), MAXCMD - 8);
27 + rcpath[MAXCMD - 8] = '\0';
28 + strcat(rcpath, "/.bvirc");
30 if (stat(rcpath, &buf) == 0) {
31 if (buf.st_uid == getuid()) read_rc(rcpath);