Argh, stupid C error.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 17 Jun 2005 16:17:11 +0000
changeset 97 d67550f68247
parent 96 2d4e61f36a2e
child 98 4912346d49c9
Argh, stupid C error.
platform_unix.c
--- a/platform_unix.c	Fri Jun 17 10:59:05 2005 +0000
+++ b/platform_unix.c	Fri Jun 17 16:17:11 2005 +0000
@@ -627,7 +627,7 @@
     if (realbuf[strlen(realbuf)-1] != '/')
         strcat(realbuf, "/");
 
-    basedir = malloc(strlen(realbuf + 1));
+    basedir = malloc(strlen(realbuf) + 1);
     strcpy(basedir, realbuf);
 
 #if PLATFORM_MACOSX