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:
vanhofen
2024-01-05 23:02:50 +01:00
parent 8c32493999
commit b35663155a

View File

@@ -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