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; }