From f80f5393870d6ba3cf65506154fc7b14a0003341 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Thu, 8 Jan 2015 19:59:50 +0100 Subject: [PATCH] - screensaver: use strcasecmp instead of strcmp --- src/gui/screensaver.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index 92e4e63d8..66dc696d5 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -156,7 +156,6 @@ bool CScreenSaver::ReadDir() DIR *dir; char curr_ext[5]; int curr_lenght; - char *p; bool ret = false; v_bg_files.clear(); @@ -177,10 +176,8 @@ bool CScreenSaver::ReadDir() { strncpy(curr_ext,(*dirpointer).d_name+(curr_lenght-4),5); - for (p = curr_ext; *p; ++p) - *p = (char)tolower(*p); //printf("%s\n",curr_ext); - if (strcmp(".jpg",curr_ext) && strcmp(".png",curr_ext)) + if (strcasecmp(".jpg",curr_ext) && strcasecmp(".png",curr_ext)) continue; str += "/";