|
|
|
|
|
by Cogito
2494 days ago
|
|
Peff, for the people asking in the thread, is there a place where correct alternatives are suggested or demonstrated? I know there are a few different places that talk about how to use git's internal machinery, but not sure if any are specific to these banned functions. |
|
For other codebases, snprintf is the usual recommendation, and careful straight buffer manipulation (mem*) iff performances are a concern.
[0] https://schacon.github.io/git/technical/api-strbuf.html
[1] https://code.forksand.com/linux/git_git/commit/7b03c89ebd103...