Skip to content

Commit

Permalink
Update libr/util/str.c
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae authored Aug 4, 2024
1 parent 3599ef7 commit 541d12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/util/str.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ R_API char *r_str_prepend(char *ptr, const char *string) {

R_API char *r_str_appendlen(char *ptr, const char *string, int slen) {
r_return_val_if_fail (string, NULL);
char *msg = r_str_ndup (string, slen);
char *msg = R_STR_NDUP (string, slen); // only fails for token.c
char *ret = r_str_append (ptr, msg);
free (msg);
return ret;
Expand Down

0 comments on commit 541d12c

Please sign in to comment.