Skip to content

Commit

Permalink
malloc -> vi_malloc
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf authored Apr 21, 2021
1 parent 79cdf28 commit 9a4e1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vi_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static int vasprintf(char **string_ptr, const char *format, va_list p)
return (*string_ptr ? r : -1);
}

*string_ptr = malloc(r+1);
*string_ptr = vi_malloc(r+1);
r = (*string_ptr ? vsnprintf(*string_ptr, r+1, format, p2) : -1);
va_end(p2);

Expand Down

0 comments on commit 9a4e1e7

Please sign in to comment.