strbuf: use strbuf_addstr() for adding C strings
commitcedc61a99804db99f9a658c3cccd5c2786a28501
authorRené Scharfe <l.s.r@web.de>
Wed, 16 Jul 2014 23:38:18 +0000 (17 01:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Jul 2014 20:33:52 +0000 (17 13:33 -0700)
tree7bc10fd908eba7b65762badba1a4e27a42c696ae
parent9d02150cf4d833935161ef265e4dc03807caa800
strbuf: use strbuf_addstr() for adding C strings

Avoid code duplication and let strbuf_addstr() call strlen() for us.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
diff.c
path.c