mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
fixes strncpy & buf size
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7359504dd7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-08-07 (Tue, 07 Aug 2012)
Origin message was:
------------------
-fixes strncpy & buf size
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1634,7 +1634,7 @@ CMenuOptionLanguageChooser::~CMenuOptionLanguageChooser()
|
||||
|
||||
int CMenuOptionLanguageChooser::exec(CMenuTarget*)
|
||||
{
|
||||
strncpy(g_settings.language, optionValue.c_str(), sizeof(g_settings.language));
|
||||
strncpy(g_settings.language, optionValue.c_str(), sizeof(g_settings.language)-1);
|
||||
if(observ)
|
||||
observ->changeNotify(LOCALE_LANGUAGESETUP_SELECT, (void *) optionValue.c_str());
|
||||
return menu_return::RETURN_EXIT;
|
||||
|
Reference in New Issue
Block a user