Blame atomorun-1.1-warnings-fix.patch
|
|
a6b72b2 |
diff -up atomorun-1.1_pre2/src/engine_setup.c~ atomorun-1.1_pre2/src/engine_setup.c
|
|
|
a6b72b2 |
--- atomorun-1.1_pre2/src/engine_setup.c~ 2020-02-15 12:12:11.000000000 +0100
|
|
|
a6b72b2 |
+++ atomorun-1.1_pre2/src/engine_setup.c 2020-02-15 12:14:03.768198256 +0100
|
|
|
a6b72b2 |
@@ -34,7 +34,7 @@ void stop_all_sounds()
|
|
|
a6b72b2 |
|
|
|
a6b72b2 |
void load_sound(GLbyte *name, GLint sound_id)
|
|
|
a6b72b2 |
{
|
|
|
a6b72b2 |
- GLbyte name2[strlen(name)];
|
|
|
a6b72b2 |
+ GLbyte name2[strlen(name) + 1];
|
|
|
a6b72b2 |
|
|
|
a6b72b2 |
strcpy(name2, name);
|
|
|
a6b72b2 |
|
|
|
a6b72b2 |
@@ -236,7 +236,7 @@ void load_texture(GLbyte *name, GLint te
|
|
|
a6b72b2 |
{
|
|
|
a6b72b2 |
SDL_Surface *TextureImage[1]; /* Platz für die Textur freimachen */
|
|
|
a6b72b2 |
SDL_RWops *rwop;
|
|
|
a6b72b2 |
- GLbyte name2[strlen(name)];
|
|
|
a6b72b2 |
+ GLbyte name2[strlen(name) + 1];
|
|
|
a6b72b2 |
|
|
|
a6b72b2 |
strcpy(name2, name);
|
|
|
a6b72b2 |
|
|
|
a6b72b2 |
diff -up atomorun-1.1_pre2/src/main.c~ atomorun-1.1_pre2/src/main.c
|
|
|
a6b72b2 |
--- atomorun-1.1_pre2/src/main.c~ 2020-02-15 12:12:11.000000000 +0100
|
|
|
a6b72b2 |
+++ atomorun-1.1_pre2/src/main.c 2020-02-15 12:15:10.861659023 +0100
|
|
|
a6b72b2 |
@@ -158,7 +158,7 @@ void process_args(int argc, char** argv)
|
|
|
a6b72b2 |
quit(0);
|
|
|
a6b72b2 |
break;
|
|
|
a6b72b2 |
case 'h':
|
|
|
a6b72b2 |
- printf("Atomorun help:\n", VERSION);
|
|
|
a6b72b2 |
+ printf("Atomorun %s help:\n", VERSION);
|
|
|
a6b72b2 |
printf("--------------\n");
|
|
|
a6b72b2 |
printf("Usage: atomorun [OPTION]...\n\n");
|
|
|
a6b72b2 |
printf(" -r X\tSelect resolution. X must be one of the following:\n");
|