graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 6dc8bf8f16aecb4920a41738bb95f84f6d1802c2
parent 41b978087f55c80a3a0616c734b41737fd6a6c93
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat,  9 Feb 2013 21:42:49 -0800

io: oops, make it really compile on lunix

Diffstat:
Mcommon/io.cc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/io.cc b/common/io.cc @@ -14,6 +14,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <stdarg.h> #include <string.h> @@ -44,7 +45,7 @@ void init_io(void) { r = readlink("/proc/self/exe", base_path, 1024); if (r < 0) return; - x = strrchr(buf,'/'); + x = strrchr(base_path, '/'); if (x) { x[1] = 0; strcat(base_path,"assets/");