mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
helpers: improve my_system function
Instead of hardcoding the maximum number of arguments to the my_system helper, pass a variable argument list. The function is deliberately source-incompatible with the old implementation (as opposed to a variant with a sentinel NULL argument, which would be compatible) to find all users and to make sure that new future users of this function are not overlooked during merges with other branches.
This commit is contained in:
@@ -514,7 +514,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
printf("[update] calling %s %s %s\n",install_sh, g_settings.update_dir, filename.c_str() );
|
||||
#else
|
||||
printf("[update] calling %s %s %s\n",install_sh, g_settings.update_dir, filename.c_str() );
|
||||
my_system( install_sh, g_settings.update_dir, filename.c_str() );
|
||||
my_system(3, install_sh, g_settings.update_dir, filename.c_str());
|
||||
#endif
|
||||
showGlobalStatus(100);
|
||||
ShowHintUTF(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_FLASHUPDATE_READY)); // UTF-8
|
||||
|
Reference in New Issue
Block a user