mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
fix for 523bea256a
Signed-off-by: MarkusVolk <f_l_k@t-online.de> Signed-off-by: Thilo Graf <dbt@novatux.de> commit was: screensaver.cpp: avoid unterminated strings
This commit is contained in:
@@ -274,7 +274,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))
|
||||
|
Reference in New Issue
Block a user