From 98ed53f17da05025e148450fd0cbc8105a126b9e Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 25 Nov 2012 16:28:05 +0100 Subject: [PATCH] Fix strlcat calling bug. --- file_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file_path.c b/file_path.c index d2f5401e2b..0ff8e76c44 100644 --- a/file_path.c +++ b/file_path.c @@ -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);