From a344d19f393084747eb468abfe3d256cfe68b02b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 3 May 2012 12:01:17 +0200 Subject: [PATCH] moviebrowser.cpp:fix delete file Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6248f1180749395bbf8356448290ca4434522e22 Author: Jacek Jendrzej Date: 2012-05-03 (Thu, 03 May 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/moviebrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index d66a2a424..903f99b37 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2575,7 +2575,7 @@ bool CMovieBrowser::delFile_std(CFile& file) { bool result = true; char buf[FILENAME_MAX]={0}; - snprintf(buf,sizeof(buf), "nice -n 20 rm -f %s &", file.Name.c_str()); + snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s\" &", file.Name.c_str()); system(buf); TRACE(" delete file: %s\r\n",file.Name.c_str()); return(result);