Fixed potential buffer overflow

This commit is contained in:
Dimitris Panokostas 2019-02-08 20:19:22 +01:00
parent c9eaac70dc
commit 04eb0d3701

View file

@ -27,7 +27,7 @@ static bool clip_no_hires = false;
void rp9_init()
{
fetch_rp9path(rp9tmp_path, MAX_DPATH);
strncat(rp9tmp_path, _T("tmp/"), MAX_DPATH);
strncat(rp9tmp_path, _T("tmp/"), MAX_DPATH - 1);
lstTmpRP9Files.clear();
LIBXML_TEST_VERSION
}