Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Sep 16, 2024
1 parent 86e7534 commit ead5496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/termux-readlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ __attribute__((visibility("default"))) ssize_t readlink(const char *restrict pat
if (termux_self_exe) {
size_t termux_self_exe_len = strlen(termux_self_exe);
size_t bytes_to_copy = (termux_self_exe_len < bufsiz) ? termux_self_exe_len : bufsiz;
strncpy(buf, termux_self_exe, bytes_to_copy);
memcpy(buf, termux_self_exe, bytes_to_copy);
return bytes_to_copy;
}
}
Expand Down

0 comments on commit ead5496

Please sign in to comment.