fix for 523bea256ad23bf6ae1c1f7e2b9532dec3a3b248

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: d3d3a54e4f
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-18 (Sat, 18 Jan 2020)



------------------
This commit was generated by Migit
This commit is contained in:
Markus Volk
2020-01-18 00:10:19 +01:00
committed by vanhofen
parent 7282458694
commit fe900a33f3

View File

@@ -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))