mirror of https://github.com/snes9xgit/snes9x.git
GTK+: Don't use sstrncpy when not capping to buffer size.
This commit is contained in:
parent
a48703796a
commit
d878b46693
|
@ -246,7 +246,7 @@ S9xBasenameNoExt (const char *f)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int len = ext - base;
|
int len = ext - base;
|
||||||
sstrncpy (filename, base, len);
|
strncpy (filename, base, len);
|
||||||
filename[len] = '\0';
|
filename[len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue