From 2e1bff00761c0628c3f697eb2bf2fb8cc6341b0d Mon Sep 17 00:00:00 2001 From: in2 Date: Tue, 16 Apr 2002 14:55:31 +0000 Subject: revert to 1.9 git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@115 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/more.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/more.c') diff --git a/mbbsd/more.c b/mbbsd/more.c index 0a6cbb59..a932d585 100644 --- a/mbbsd/more.c +++ b/mbbsd/more.c @@ -1,4 +1,4 @@ -/* $Id: more.c,v 1.6 2002/04/15 19:56:53 in2 Exp $ */ +/* $Id: more.c,v 1.7 2002/04/16 14:55:31 in2 Exp $ */ #include #include #include @@ -236,8 +236,8 @@ int more(char *fpath, int promptend) { //if(!promptend && strncmp(fpath,"home",4)){ if( strncmp(fpath, "boards/", 7) == 0 || strncmp(fpath, "etc/", 4) == 0 ){ /* we only cache boards/ and etc/ */ - char cpath[256]; - cachepath(cpath,fpath); + char *cpath; + cpath = cachepath(fpath); ++GLOBE[0]; if( (fd = open(cpath, O_RDONLY)) < 0 && (fd = updatemdcache(cpath, fpath)) < 0 ) -- cgit v1.2.3