mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
neutrino: fix compiler warning
warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' accessing 2147483640 or more bytes at offsets 0 and 0 overlaps 2147483633 bytes at offset 7 [-Wrestrict]
Origin commit data
------------------
Branch: ni/coolstream
Commit: b7d3d02cc5
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Origin message was:
------------------
- neutrino: fix compiler warning
warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' accessing 2147483640 or more bytes at offsets 0 and 0 overlaps 2147483633 bytes at offset 7 [-Wrestrict]
------------------
This commit was generated by Migit
This commit is contained in:
@@ -239,6 +239,7 @@ CNeutrinoFonts * neutrinoFonts = NULL;
|
||||
// I don't like globals, I would have hidden them in classes,
|
||||
// but if you wanna do it so... ;)
|
||||
bool parentallocked = false;
|
||||
|
||||
static char **global_argv;
|
||||
|
||||
extern const char * locale_real_names[]; /* #include <system/locals_intern.h> */
|
||||
@@ -2551,7 +2552,7 @@ void CNeutrinoApp::CmdParser(int argc, char **argv)
|
||||
{
|
||||
global_argv = new char *[argc+1];
|
||||
for (int i = 0; i < argc; i++)
|
||||
global_argv[i] = argv[i];
|
||||
global_argv[i] = strdup(argv[i]);
|
||||
global_argv[argc] = NULL;
|
||||
|
||||
sections_debug = 1;
|
||||
@@ -5573,6 +5574,7 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
for(int i = 3; i < 256; i++)
|
||||
close(i);
|
||||
|
||||
execvp(global_argv[0], global_argv); // no return if successful
|
||||
|
||||
exit(CNeutrinoApp::EXIT_REBOOT); // should never be reached
|
||||
|
Reference in New Issue
Block a user