summaryrefslogtreecommitdiff
path: root/pathspec.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 10:54:24 +0200
committerJunio C Hamano <gitster@pobox.com>2014-07-10 14:06:46 -0700
commit294b2680cd89234618e329e090b68dc69cc41a37 (patch)
tree56c2477f0369e9476d71d41068bfa3d8dab3cf9e /pathspec.c
parente992d1eb39033206dd44143ff28214b837c3d89f (diff)
downloadgit-294b2680cd89234618e329e090b68dc69cc41a37.tar.gz
use strbuf_addch for adding single characters
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pathspec.c')
-rw-r--r--pathspec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathspec.c b/pathspec.c
index 8043099955..89f2c8ffff 100644
--- a/pathspec.c
+++ b/pathspec.c
@@ -338,7 +338,7 @@ static void NORETURN unsupported_magic(const char *pattern,
if (!(magic & m->bit))
continue;
if (sb.len)
- strbuf_addstr(&sb, " ");
+ strbuf_addch(&sb, ' ');
if (short_magic & m->bit)
strbuf_addf(&sb, "'%c'", m->mnemonic);
else