aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-migrate.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-25 05:55:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-27 21:25:01 +0800
commit58166e645971a4812fef23702f45cacc8e64e419 (patch)
treebedad70e39e2215a53105e0303c168e86140371a /modules/mail/e-mail-shell-migrate.c
parentc58b70659747967568a536e217b9440424709f92 (diff)
downloadgsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.gz
gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.zst
gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.zip
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'modules/mail/e-mail-shell-migrate.c')
-rw-r--r--modules/mail/e-mail-shell-migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-migrate.c b/modules/mail/e-mail-shell-migrate.c
index 967f80053f..43cd1a5185 100644
--- a/modules/mail/e-mail-shell-migrate.c
+++ b/modules/mail/e-mail-shell-migrate.c
@@ -1670,7 +1670,7 @@ em_migrate_folder(EMMigrateSession *session, const gchar *dirname, const gchar *
}
/* copy over the metadata files */
- for (i = 0; i < sizeof(meta_ext)/sizeof(meta_ext[0]); i++) {
+ for (i = 0; i < G_N_ELEMENTS (meta_ext); i++) {
g_string_truncate (src, slen);
g_string_truncate (dest, dlen);