mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
convert most char[...] configuration values to std::string
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
Origin commit data
------------------
Branch: ni/coolstream
Commit: cbc9299df8
Author: martii <m4rtii@gmx.de>
Date: 2013-06-11 (Tue, 11 Jun 2013)
------------------
This commit was generated by Migit
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