From 6e89dac99ec9b6477de9688ca5489dc1005f6d0c Mon Sep 17 00:00:00 2001 From: dhewg Date: Fri, 9 Dec 2011 23:39:00 +0100 Subject: [PATCH] Fix -Warray-bounds warning --- neo/sys/linux/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/sys/linux/main.cpp b/neo/sys/linux/main.cpp index d4d02a17..53f8d59c 100644 --- a/neo/sys/linux/main.cpp +++ b/neo/sys/linux/main.cpp @@ -139,7 +139,7 @@ const char *Sys_EXEPath( void ) { len = readlink( linkpath.c_str(), buf, sizeof( buf ) ); if ( len == -1 ) { Sys_Printf("couldn't stat exe path link %s\n", linkpath.c_str()); - buf[ len ] = '\0'; + buf[ 0 ] = '\0'; } return buf; }