diff --git a/examples/common/entry/entry_android.cpp b/examples/common/entry/entry_android.cpp index f1b8ce265..3ec42fcce 100644 --- a/examples/common/entry/entry_android.cpp +++ b/examples/common/entry/entry_android.cpp @@ -197,8 +197,8 @@ namespace entry , 0 ); - const char* const argv[1] = { "android.so" }; - m_mte.m_argc = 1; + static const char* const argv[] = { "android.so" }; + m_mte.m_argc = BX_COUNTOF(argv); m_mte.m_argv = argv; while (0 == m_app->destroyRequested) diff --git a/examples/common/entry/entry_ios.mm b/examples/common/entry/entry_ios.mm index 915786a07..a99b7cdf8 100644 --- a/examples/common/entry/entry_ios.mm +++ b/examples/common/entry/entry_ios.mm @@ -38,8 +38,8 @@ namespace entry { Context(uint32_t _width, uint32_t _height) { - const char* const argv[1] = { "ios" }; - m_mte.m_argc = 1; + static const char* const argv[] = { "ios" }; + m_mte.m_argc = BX_COUNTOF(argv); m_mte.m_argv = argv; m_eventQueue.postSizeEvent(s_defaultWindow, _width, _height);