Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t7201: fix &&-chain breakage
[gitweb.git]
/
pretty.c
diff --git
a/pretty.c
b/pretty.c
index 9d34d02db11bd6761d48484327fbc6d1704ad555..7b493041814dc8514bde0778497d39868c8455d7 100644
(file)
--- a/
pretty.c
+++ b/
pretty.c
@@
-567,7
+567,7
@@
static char *replace_encoding_header(char *buf, const char *encoding)
char *cp = buf;
/* guess if there is an encoding header before a \n\n */
- while (
strncmp(cp, "encoding ", strlen("encoding ")
)) {
+ while (
!starts_with(cp, "encoding "
)) {
cp = strchr(cp, '\n');
if (!cp || *++cp == '\n')
return buf;