# HG changeset patch # User Sam Lantinga # Date 1278480363 25200 # Node ID 2bb1bfeee9e2ff9f15d5a4f6de6aeb6f9f60310c # Parent 6dc6a2bdd55ecb4f084db332cee34a0cff85deec The arguments to main() should be NULL terminated (SuS v3 compliant) diff -r 6dc6a2bdd55e -r 2bb1bfeee9e2 src/video/uikit/SDL_uikitappdelegate.m --- a/src/video/uikit/SDL_uikitappdelegate.m Tue Jul 06 22:08:19 2010 -0700 +++ b/src/video/uikit/SDL_uikitappdelegate.m Tue Jul 06 22:26:03 2010 -0700 @@ -42,11 +42,12 @@ /* store arguments */ forward_argc = argc; - forward_argv = (char **)malloc(argc * sizeof(char *)); + forward_argv = (char **)malloc((argc+1) * sizeof(char *)); for (i=0; i