mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
convert most char[...] configuration values to std::string
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
This commit is contained in:
@@ -75,8 +75,8 @@ int CPictureViewerSetup::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
parent->hide();
|
||||
CFileBrowser b;
|
||||
b.Dir_Mode=true;
|
||||
if (b.exec(g_settings.network_nfs_picturedir))
|
||||
strncpy(g_settings.network_nfs_picturedir, b.getSelectedFile()->Name.c_str(), sizeof(g_settings.network_nfs_picturedir)-1);
|
||||
if (b.exec(g_settings.network_nfs_picturedir.c_str()))
|
||||
g_settings.network_nfs_picturedir = b.getSelectedFile()->Name;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user