Fix -Warray-bounds warning

This commit is contained in:
dhewg 2011-12-09 23:39:00 +01:00
parent e97d328804
commit 6e89dac99e

View file

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