[w3m-dev 03647] expandName() and expandPath()
* etc.c (openSecretFile): use expandPath (expandName): rewrite (file_to_url): use expandPath * file.c (_doFileCopy): use expandPath (doFileSave): use expandPath * indep.c (expandPath): rewrite * linein.c (inputLineHistSearch): use expandPath (next_dcompl): use expandPath (doComplete): use expandPath * local.c (set_cgi_environ): rewrite * mailcap.c (loadMailcap): use expandPath * main.c (svBuf): use expandPath (addDownloadList): use expandPath * rc.c (init_rc): use expandPath (rcFile): rewrite (auxbinFile): use expandPath (libFile): use expandPath (etcFile): use expandPath (helpFile): use expandPath * url.c (loadMimeTypes): use expandPath (loadURIMethods): use expandPath From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: mailcap.c,v 1.11 2002/12/24 17:20:47 ukai Exp $ */
 | 
			
		||||
/* $Id: mailcap.c,v 1.12 2003/01/17 17:06:04 ukai Exp $ */
 | 
			
		||||
#include "fm.h"
 | 
			
		||||
#include "myctype.h"
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
@@ -187,7 +187,7 @@ loadMailcap(char *filename)
 | 
			
		||||
    Str tmp;
 | 
			
		||||
    struct mailcap *mcap;
 | 
			
		||||
 | 
			
		||||
    f = fopen(expandName(filename), "r");
 | 
			
		||||
    f = fopen(expandPath(filename), "r");
 | 
			
		||||
    if (f == NULL)
 | 
			
		||||
	return NULL;
 | 
			
		||||
    i = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user