From 531d7a496f4d673a62615175b9332536e924502f Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 27 Feb 2003 04:53:09 +0000 Subject: Undo jeff's changes. 2003-02-27 Not Zed * camel-multipart-signed.c: Undo jeff's changes. * providers/local/camel-spool-store.c (scan_dir): Fix a paste-o in the object_bag_get key. svn path=/trunk/; revision=20084 --- camel/providers/local/camel-spool-store.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'camel/providers/local/camel-spool-store.c') diff --git a/camel/providers/local/camel-spool-store.c b/camel/providers/local/camel-spool-store.c index c8d76f8a63..f1f264f94a 100644 --- a/camel/providers/local/camel-spool-store.c +++ b/camel/providers/local/camel-spool-store.c @@ -23,6 +23,10 @@ #include #endif +#ifdef HAVE_ALLOCA_H +#include +#endif + #include #include #include @@ -273,8 +277,8 @@ static int scan_dir(CamelStore *store, GHashTable *visited, char *root, const ch /* look for folders matching the right structure, recursively */ if (path) { - name = g_alloca (strlen (root) + strlen (path) + 2); - sprintf (name, "%s/%s", root, path); + name = alloca(strlen(root) + strlen(path) + 2); + sprintf(name, "%s/%s", root, path); } else name = root; @@ -346,7 +350,7 @@ static int scan_dir(CamelStore *store, GHashTable *visited, char *root, const ch if (S_ISREG(st.st_mode)) { /* first, see if we already have it open */ - folder = camel_object_bag_get(store->folders, path); + folder = camel_object_bag_get(store->folders, fname); if (folder) { /* should this refresh if ! FAST? */ unread = camel_folder_get_unread_message_count(folder); -- cgit