Fix strlcat calling bug.

This commit is contained in:
Themaister 2012-11-25 16:28:05 +01:00
parent 8b09314aa3
commit 98ed53f17d

View File

@ -514,7 +514,7 @@ void fill_pathname_join(char *out_path, const char *dir, const char *path, size_
if (dir_len)
{
if (out_path[dir_len - 1] != '/' && out_path[dir_len - 1] != '\\')
rarch_assert(strlcat(out_path, join_str, sizeof(out_path)));
rarch_assert(strlcat(out_path, join_str, size));
}
rarch_assert(strlcat(out_path, path, size) < size);