Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
2c5a878c
Commit
2c5a878c
authored
Jul 07, 2010
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The arguments to main() should be NULL terminated (SuS v3 compliant)
parent
44280ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
SDL_uikitappdelegate.m
src/video/uikit/SDL_uikitappdelegate.m
+2
-1
No files found.
src/video/uikit/SDL_uikitappdelegate.m
View file @
2c5a878c
...
...
@@ -42,11 +42,12 @@ int main(int argc, char **argv) {
/* store arguments */
forward_argc
=
argc
;
forward_argv
=
(
char
**
)
malloc
(
argc
*
sizeof
(
char
*
));
forward_argv
=
(
char
**
)
malloc
(
(
argc
+
1
)
*
sizeof
(
char
*
));
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
forward_argv
[
i
]
=
malloc
(
(
strlen
(
argv
[
i
])
+
1
)
*
sizeof
(
char
));
strcpy
(
forward_argv
[
i
],
argv
[
i
]);
}
forward_argv
[
i
]
=
NULL
;
/* Give over control to run loop, SDLUIKitDelegate will handle most things from here */
UIApplicationMain
(
argc
,
argv
,
NULL
,
@"SDLUIKitDelegate"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment