[PATCH 0/3] builtin-branch: use strbuf
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Nov 17, 2008, 20:48 UTC
- Message-ID
- <cover.1226954771.git.vmiklos@frugalware.org>
These 3 patches do what's in the subject: use the strbuf API instead of snprintf() / sprintf().
The current risk of writing unallocated memory is low, I think, but still, the return value of these functions were not checked at several places.
Miklos Vajna (3): builtin-branch: use strbuf in delete_branches() builtin-branch: use strbuf in fill_tracking_info() builtin-branch: use strbuf in rename_branch()
builtin-branch.c | 65 +++++++++++++++++++++++++++-------------------------- 1 files changed, 33 insertions(+), 32 deletions(-)