Skip to content
Permalink
Browse files

Fixed buffer overflow.

  • Loading branch information
icculus committed Oct 24, 2013
1 parent aa10a5d commit 609b58e4417d0f9d0996943d1b97891587b4bd15
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/filesystem/cocoa/SDL_sysfilesystem.m
@@ -77,7 +77,7 @@
NSString *str = [array objectAtIndex:0];
const char *base = [str fileSystemRepresentation];
if (base) {
const size_t len = SDL_strlen(base) + SDL_strlen(app) + 4;
const size_t len = SDL_strlen(base) + SDL_strlen(org) + SDL_strlen(app) + 4;
retval = (char *) SDL_malloc(len);
if (retval == NULL) {
SDL_OutOfMemory();

0 comments on commit 609b58e

Please sign in to comment.