mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-06-01 09:21:58 +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 ) );
|
len = readlink( linkpath.c_str(), buf, sizeof( buf ) );
|
||||||
if ( len == -1 ) {
|
if ( len == -1 ) {
|
||||||
Sys_Printf("couldn't stat exe path link %s\n", linkpath.c_str());
|
Sys_Printf("couldn't stat exe path link %s\n", linkpath.c_str());
|
||||||
buf[ len ] = '\0';
|
buf[ 0 ] = '\0';
|
||||||
}
|
}
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue