From fe900a33f31172d28252e852df75cf2739421d24 Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Sat, 18 Jan 2020 00:10:19 +0100 Subject: [PATCH] fix for 523bea256ad23bf6ae1c1f7e2b9532dec3a3b248 Signed-off-by: MarkusVolk Signed-off-by: Thilo Graf commit was: screensaver.cpp: avoid unterminated strings Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d3d3a54e4f8393b0c13e0d933d9dfa673694f1b5 Author: Markus Volk Date: 2020-01-18 (Sat, 18 Jan 2020) ------------------ This commit was generated by Migit --- src/gui/screensaver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))