From 6db8b43826423d1f99f7647bafeb773fec3f1826 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 9 Sep 2002 18:18:27 +0000 Subject: revert an earlier change that used the full account name as the folder name (oops) : ---------------------------------------------------------------------- svn path=/trunk/; revision=18023 --- mail/upgrade-mailer.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'mail') diff --git a/mail/upgrade-mailer.c b/mail/upgrade-mailer.c index 7f62e654e5..42bdd27ca6 100644 --- a/mail/upgrade-mailer.c +++ b/mail/upgrade-mailer.c @@ -630,7 +630,7 @@ shortcuts_upgrade_uri (GHashTable *accounts, GHashTable *imap_sources, const cha static int shortcuts_upgrade_xml_file (GHashTable *accounts, GHashTable *imap_sources, const char *filename) { - unsigned char *buffer, *inptr, *start, *folder, *new, *p, *account = NULL; + unsigned char *buffer, *inptr, *start, *folder, *new, *account = NULL; ssize_t nread = 0, nwritten, n; gboolean url_need_upgrade; struct stat st; @@ -682,11 +682,12 @@ shortcuts_upgrade_xml_file (GHashTable *accounts, GHashTable *imap_sources, cons inptr = strstr (inptr, ">evolution:/"); if (inptr) { inptr += 12; - p = account = inptr; - while (*p && *p != '/') - p++; + account = inptr; + while (*inptr && *inptr != '/') + inptr++; - account = g_strndup (account, p - account); + account = g_strndup (account, inptr - account); + inptr++; url_need_upgrade = GPOINTER_TO_INT (g_hash_table_lookup (accounts, account)); } @@ -767,11 +768,12 @@ shortcuts_upgrade_xml_file (GHashTable *accounts, GHashTable *imap_sources, cons inptr = strstr (inptr, ">evolution:/"); if (inptr) { inptr += 12; - p = account = inptr; - while (*p && *p != '/') - p++; + account = inptr; + while (*inptr && *inptr != '/') + inptr++; - account = g_strndup (account, p - account); + account = g_strndup (account, inptr - account); + inptr++; url_need_upgrade = GPOINTER_TO_INT (g_hash_table_lookup (accounts, account)); } -- cgit v1.2.3