Skip to content

Commit

Permalink
Fix runahead.c
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 24, 2025
1 parent 04cdf0a commit 120465d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runahead.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ static void strcat_alloc(char **dst, const char *s)
{
size_t __len = strlen(s);
if (__len != 0)
src = strldup(s, __len);
src = strldup(s, __len + 1);
else
src = NULL;
}
Expand Down Expand Up @@ -239,7 +239,7 @@ static char *get_tmpdir_alloc(const char *override_dir)
{
size_t _len = strlen(src);
if (_len != 0)
path = strldup(src, _len);
path = strldup(src, _len + 1);
}
else
path = (char*)calloc(1,1);
Expand All @@ -264,7 +264,7 @@ static bool write_file_with_random_name(char **temp_dll_path,
{
size_t _len = strlen(src);
if (_len != 0)
ext = strldup(src, _len);
ext = strldup(src, _len + 1);
}
else
ext = (char*)calloc(1,1);
Expand Down

0 comments on commit 120465d

Please sign in to comment.