Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37478955
en ru br
ALT Linux repos
S:1.1-alt5_0.38.pre2

Group :: Games/Other
RPM: atomorun

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: atomorun-1.1-warnings-fix.patch
Download


diff -up atomorun-1.1_pre2/src/engine_setup.c~ atomorun-1.1_pre2/src/engine_setup.c
--- atomorun-1.1_pre2/src/engine_setup.c~	2020-02-15 12:12:11.000000000 +0100
+++ atomorun-1.1_pre2/src/engine_setup.c	2020-02-15 12:14:03.768198256 +0100
@@ -34,7 +34,7 @@ void stop_all_sounds()
 
 void load_sound(GLbyte *name, GLint sound_id)
 {
-	GLbyte name2[strlen(name)];
+	GLbyte name2[strlen(name) +  1];
 	
 	strcpy(name2, name);
 		
@@ -236,7 +236,7 @@ void load_texture(GLbyte *name, GLint te
 {
 	SDL_Surface *TextureImage[1];	/* Platz für die Textur freimachen */
 	SDL_RWops *rwop;
-	GLbyte name2[strlen(name)];
+	GLbyte name2[strlen(name) + 1];
 	
 	strcpy(name2, name);
 	
diff -up atomorun-1.1_pre2/src/main.c~ atomorun-1.1_pre2/src/main.c
--- atomorun-1.1_pre2/src/main.c~	2020-02-15 12:12:11.000000000 +0100
+++ atomorun-1.1_pre2/src/main.c	2020-02-15 12:15:10.861659023 +0100
@@ -158,7 +158,7 @@ void process_args(int argc, char** argv)
 						quit(0);
 						break;
 					case 'h':
-						printf("Atomorun help:\n", VERSION);
+						printf("Atomorun %s help:\n", VERSION);
 						printf("--------------\n");
 						printf("Usage: atomorun [OPTION]...\n\n");
 						printf("  -r X\tSelect resolution. X must be one of the following:\n");
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin