[prev in list] [next in list] [prev in thread] [next in thread]
List: elinks-dev
Subject: [elinks-dev] Re: [ELinks] elinks - jonas: guess_encoding(): Fix
From: Miciah Dashiel Butler Masters <miciah () myrealbox ! com>
Date: 2004-07-31 8:54:10
Message-ID: 20040731085409.GB23496 () localhost
[Download RAW message or body]
On 20040729 10:02:30, cvs@pasky.or.cz wrote:
> This is an automated notification of a change to the ELinks CVS tree.
>
> Author: jonas
> Module: elinks
> Tag: <TRUNK>
> Date: Thu Jul 29 10:02:30 2004 GMT
>
> ---- Log message:
>
> guess_encoding(): Fix comparison. Now that the extension contains the '.' the \
> filename isn't necessarily longer than the extension.
The extension has always contained the '.'; see src/util/encoding.c
1.17. If the file name isn't longer than the extension, either they
don't match or the file is an extensionless, hidden file.
> ---- Files affected:
>
> elinks/src/encoding:
> encoding.c (1.34 -> 1.35)
> http://cvsweb.elinks.or.cz/cvsweb.cgi/elinks/src/encoding/encoding.c.diff?r1=1.34&r2=1.35&f=u
>
>
> ---- Diffs:
>
> elinks/src/encoding/encoding.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
>
> Index: elinks/src/encoding/encoding.c
> diff -u elinks/src/encoding/encoding.c:1.34 elinks/src/encoding/encoding.c:1.35
> --- elinks/src/encoding/encoding.c:1.34 Sat Jul 3 02:04:14 2004
> +++ elinks/src/encoding/encoding.c Thu Jul 29 12:02:25 2004
> @@ -161,7 +161,7 @@
> while (ext && *ext) {
> int len = strlen(*ext);
>
> - if (fname_len > len && !strcmp(fname_end - len, *ext))
> + if (fname_len >= len && !strcmp(fname_end - len, *ext))
> return enc;
>
> ext++;
-- Miciah <miciah@myrealbox.com>
_______________________________________________
ELinks-dev mailing list
ELinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic