Skip to content

Commit

Permalink
Fixed an error reported by gcc on Fedora about format-security (#373)
Browse files Browse the repository at this point in the history
This fixes something that is neither invalid nor a security vulnerability, Still, distros other than Fedora may decide to report it in the future as an error too. So we are getting ahead of them.
  • Loading branch information
bcoconni authored Oct 27, 2020
1 parent 6b45ec2 commit d3f5d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL/MyOpenGLView.m
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ - (id) init
}

int testAttrib = -1;
OOLog(@"display.initGL", @"Achieved color / depth buffer sizes (bits):");
OOLog(@"display.initGL", @"%@", @"Achieved color / depth buffer sizes (bits):");
SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &testAttrib);
OOLog(@"display.initGL", @"Red: %d", testAttrib);
SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &testAttrib);
Expand Down

0 comments on commit d3f5d40

Please sign in to comment.