* Fix window special port names detection on creating folders
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Oct 2008 21:19:08 +0000 (21:19 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 20 Oct 2008 21:19:08 +0000 (21:19 +0000)
  (fixes NB#89369).

pmo-trunk-r6131

src/modest-text-utils.c

index 609659f..d3805a1 100644 (file)
@@ -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;