From: Jose Dapena Paz Date: Mon, 20 Oct 2008 21:19:08 +0000 (+0000) Subject: * Fix window special port names detection on creating folders X-Git-Tag: git_migration_finished~1124 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=eda5076af8a5e224d63f560f50ab445de1287a72;ds=sidebyside * Fix window special port names detection on creating folders (fixes NB#89369). pmo-trunk-r6131 --- diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 609659f..d3805a1 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1392,8 +1392,8 @@ modest_text_utils_validate_folder_name (const gchar *folder_name) /* Cannot contain Windows port numbers. I'd like to use GRegex but it's still not available in Maemo. sergio */ - if (g_ascii_strncasecmp (folder_name, "LPT", 3) || - g_ascii_strncasecmp (folder_name, "COM", 3)) { + if (!g_ascii_strncasecmp (folder_name, "LPT", 3) || + !g_ascii_strncasecmp (folder_name, "COM", 3)) { glong val; gchar *endptr;