w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit bf606e89ed8c62257aa102c6341de5bac2d089ad
parent 0ee98d5aa31b04f4cd1926d93925dd102e61cd81
Author: ukai <ukai>
Date:   Thu, 13 Mar 2003 15:40:40 +0000

[w3m-dev 03822] Re: etc.c: treatment for "%7E" is added to  expandName()
* etc.c (expandName): rewrite with strncasecmp
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 5+++++
Metc.c | 6+++---
2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2003-03-14 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 03822] Re: etc.c: treatment for "%7E" is added to expandName() + * etc.c (expandName): rewrite with strncasecmp + +2003-03-14 Fumitoshi UKAI <ukai@debian.or.jp> + * [w3m-dev 03821] fix for pmake * Makefile.in: use $(srcdir)/... instead of $< diff --git a/etc.c b/etc.c @@ -1552,9 +1552,9 @@ expandName(char *name) return NULL; p = name; if (*p == '/') { - if ( (*(p + 1) == '~' && IS_ALPHA(*(p + 2)) ) - || ( strncmp( p+1, "%7", 2 ) == 0 && tolower( *(p+3) ) == 'e' ) - && personal_document_root) { + if (((*(p + 1) == '~' && IS_ALPHA(*(p + 2))) + || (strncasecmp(p + 1, "%7e", 3) == 0)) + && personal_document_root) { char *q; p += 2; q = strchr(p, '/');