From 1ca1dae48b15b51b269e2ef56ca5f2efd4242540 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 17 Jun 2005 16:17:11 +0000 Subject: [PATCH] Argh, stupid C error. --- platform_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform_unix.c b/platform_unix.c index feff550..b14f3fc 100644 --- a/platform_unix.c +++ b/platform_unix.c @@ -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