diff --git a/src/gui/screensaver.cpp b/src/gui/screensaver.cpp index 5ecdda1a4..52f94c2d1 100644 --- a/src/gui/screensaver.cpp +++ b/src/gui/screensaver.cpp @@ -300,7 +300,7 @@ bool CScreenSaver::ReadDir() //printf("%d\n",curr_lenght); if(curr_lenght > 4) { - strncpy(curr_ext,(*dirpointer).d_name+(curr_lenght-4),sizeof(curr_lenght)-1); + strncpy(curr_ext,(*dirpointer).d_name+(curr_lenght-4),sizeof(curr_ext)-1); //printf("%s\n",curr_ext); if (strcasecmp(".jpg",curr_ext) && strcasecmp(".png",curr_ext))