mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-02-10 13:48:52 +03:00
Fix typo
This commit is contained in:
parent
d1c69657fe
commit
58d54dfa4f
@ -391,7 +391,7 @@ char *MPlugin::resolve_suffix(char *path) const
|
|||||||
if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
|
if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) {
|
||||||
static char buf[PATH_MAX];
|
static char buf[PATH_MAX];
|
||||||
strncpy(buf, path, sizeof buf - 1);
|
strncpy(buf, path, sizeof buf - 1);
|
||||||
buf[sizeof buf - 1];
|
buf[sizeof buf - 1] = '\0';
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user