From 7c99e9ab6b3e218af92aa3544e64f16d07a9ac72 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sat, 7 Feb 2004 02:56:32 +0000 Subject: Use strrchr, not strchr. 2004-02-06 Jeffrey Stedfast * camel-provider.c (camel_provider_init): Use strrchr, not strchr. svn path=/trunk/; revision=24668 --- camel/ChangeLog | 2 ++ camel/camel-provider.c | 2 +- camel/camel-url-scanner.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index f246e8bd53..fdf8a059cb 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,5 +1,7 @@ 2004-02-06 Jeffrey Stedfast + * camel-provider.c (camel_provider_init): Use strrchr, not strchr. + * camel-gpg-context.c (gpg_ctx_parse_status): Forget the need_id, not the userid. Fixes bug #53908. diff --git a/camel/camel-provider.c b/camel/camel-provider.c index ccbb286275..1b8ef2cab5 100644 --- a/camel/camel-provider.c +++ b/camel/camel-provider.c @@ -79,7 +79,7 @@ camel_provider_init (void) while ((d = readdir (dir))) { FILE *fp; - p = strchr (d->d_name, '.'); + p = strrchr (d->d_name, '.'); if (!p || strcmp (p, ".urls") != 0) continue; diff --git a/camel/camel-url-scanner.c b/camel/camel-url-scanner.c index 3d7c0b6053..9bd46e8333 100644 --- a/camel/camel-url-scanner.c +++ b/camel/camel-url-scanner.c @@ -244,6 +244,8 @@ camel_url_addrspec_end (const char *in, const char *pos, const char *inend, urlm inptr++; else return FALSE; + + got_dot = TRUE; } else { while (inptr < inend) { if (is_domain (*inptr)) -- cgit v1.2.3