Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Argh, stupid C error.
  • Loading branch information
icculus committed Jun 17, 2005
1 parent 38da913 commit 1ca1dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform_unix.c
Expand Up @@ -627,7 +627,7 @@ static void find_basedir(int *argc, char **argv)
if (realbuf[strlen(realbuf)-1] != '/')
strcat(realbuf, "/");

basedir = malloc(strlen(realbuf + 1));
basedir = malloc(strlen(realbuf) + 1);
strcpy(basedir, realbuf);

#if PLATFORM_MACOSX
Expand Down

0 comments on commit 1ca1dae

Please sign in to comment.