fix various doc typos
[gitweb.git] / builtin-mailinfo.c
index cf5ef29c0fa524799675734a3b4355ab326c76aa..766a37ebe2da56f92be3927d6ddfe46dba9386df 100644 (file)
@@ -847,7 +847,7 @@ int cmd_mailinfo(int argc, const char **argv, const char *prefix)
                        metainfo_charset = def_charset;
                else if (!strcmp(argv[1], "-n"))
                        metainfo_charset = NULL;
-               else if (!strncmp(argv[1], "--encoding=", 11))
+               else if (!prefixcmp(argv[1], "--encoding="))
                        metainfo_charset = argv[1] + 11;
                else
                        usage(mailinfo_usage);