GTK+: Don't use sstrncpy when not capping to buffer size.

This commit is contained in:
Brandon Wright 2018-11-18 14:12:25 -06:00
parent a48703796a
commit d878b46693
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ S9xBasenameNoExt (const char *f)
else
{
int len = ext - base;
sstrncpy (filename, base, len);
strncpy (filename, base, len);
filename[len] = '\0';
}