Fix sizeof usage in get_permutations
[gitweb.git] / pretty.c
index 413e7587b6f67326a68a7679ca5496cd1249fbcd..dba682828c2e005b71c0ccbb325fb666915984bc 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -571,7 +571,7 @@ char *logmsg_reencode(const struct commit *commit,
                return NULL;
        encoding = get_header(commit, "encoding");
        use_encoding = encoding ? encoding : utf8;
-       if (!strcmp(use_encoding, output_encoding))
+       if (same_encoding(use_encoding, output_encoding))
                if (encoding) /* we'll strip encoding header later */
                        out = xstrdup(commit->buffer);
                else