git_allocator.gsubstrdup

Equivalent to gstrndup, but will always duplicate exactly n bytes of str. Thus, out of bounds reads at str may happen.

struct git_allocator
char* function(const(char)* str, size_t n, const(char)* file, int line) gsubstrdup;

Meta