Merge branch 'jc/mailinfo-RE'
[gitweb.git] / builtin / mailinfo.c
index dd4f925475fd2012822575a86e78dcd24c1ef8ef..b691b771587ac676b23c40f8d9090a3750eaa43f 100644 (file)
@@ -232,7 +232,9 @@ static void cleanup_subject(struct strbuf *subject)
                case 'r': case 'R':
                        if (subject->len <= at + 3)
                                break;
-                       if (!memcmp(subject->buf + at + 1, "e:", 2)) {
+                       if ((subject->buf[at + 1] == 'e' ||
+                            subject->buf[at + 1] == 'E') &&
+                           subject->buf[at + 2] == ':') {
                                strbuf_remove(subject, at, 3);
                                continue;
                        }