mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-18 23:42:26 +00:00
Fix -Warray-bounds warning
This commit is contained in:
parent
e97d328804
commit
6e89dac99e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue