]> git.ipfire.org Git - thirdparty/git.git/blobdiff - mailinfo.c
commit: make 'commit_graft_pos' non-static
[thirdparty/git.git] / mailinfo.c
index cf92255515d491c8508a885b885707425edf86bb..742fa376ab01142de8bb7410c37657a5ede4a391 100644 (file)
@@ -19,8 +19,7 @@ static void cleanup_space(struct strbuf *sb)
 static void get_sane_name(struct strbuf *out, struct strbuf *name, struct strbuf *email)
 {
        struct strbuf *src = name;
-       if (name->len < 3 || 60 < name->len || strchr(name->buf, '@') ||
-               strchr(name->buf, '<') || strchr(name->buf, '>'))
+       if (name->len < 3 || 60 < name->len || strpbrk(name->buf, "@<>"))
                src = email;
        else if (name == out)
                return;