git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69965
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// remove this argument
--argc;
{
// remove this argument
--argc;
- memmove(argv + 1, argv + 2, argc * sizeof(char *));
+ memmove(argv + 1, argv + 2, argc * sizeof(wxChar*));
// Only eat this option if it has an argument
if( (i + 1) < argc )
{
// Only eat this option if it has an argument
if( (i + 1) < argc )
{
+ memmove(argv + i, argv + i + 2, (argc-i-1)*sizeof(wxChar*));
- memmove(argv + i, argv + i + 2, argc * sizeof(char *));
// drop back one position so the next run through the loop
// reprocesses the argument at our current index.
--i;
// drop back one position so the next run through the loop
// reprocesses the argument at our current index.
--i;