comparison src/ui_fileops.c @ 605:651ae2be1031

Use g_ascii_strncasecmp() instead of strncasecmp() where applicable. Add a FIXME where potential improper usage of strncasecmp() is made.
author zas_
date Thu, 08 May 2008 12:50:25 +0000
parents 9dc0513837b5
children 8268cbe682f1
comparison
equal deleted inserted replaced
604:0b203af63dbf 605:651ae2be1031
643 if (!ext) return TRUE; 643 if (!ext) return TRUE;
644 644
645 p = strlen(path); 645 p = strlen(path);
646 e = strlen(ext); 646 e = strlen(ext);
647 647
648 /* FIXME: utf8 */
648 return (p > e && strncasecmp(path + p - e, ext, e) == 0); 649 return (p > e && strncasecmp(path + p - e, ext, e) == 0);
649 } 650 }
650 651
651 gchar *remove_extension_from_path(const gchar *path) 652 gchar *remove_extension_from_path(const gchar *path)
652 { 653 {