Skip to content

Commit

Permalink
Buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jun 29, 2024
1 parent 47ec7c0 commit 57c7906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libretro-common/include/array/rhmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ RHMAP__UNUSED static ptrdiff_t rhmap__idx(struct rhmap__hdr* hdr, uint32_t key,
hdr->keys[i] = key;
l = strlen(str);
t = malloc(l + 1);
memcpy(t, s, l);
memcpy(t, str, l);
t[l] = '\0';
if (str)
hdr->key_strs[i] = t;
Expand Down

0 comments on commit 57c7906

Please sign in to comment.