summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-11-09 12:42:32 -0500
committerJeff King <peff@peff.net>2012-11-09 12:42:32 -0500
commit64b22a58949cd56c6ce586c1b9da1b1d32a2889e (patch)
tree151745b372c92aab204669af109fc36ecaa2735c /utf8.c
parent15ba878a1dc4ae929ed121c109a9ff7d35149bea (diff)
parent25dc8dad3a7c9f5426f549701e22eec1f894fec8 (diff)
downloadgit-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.tar.gz
Merge branch 'js/format-2047'
Fixes many rfc2047 quoting issues in the output from format-patch. * js/format-2047: format-patch tests: check quoting/encoding in To: and Cc: headers format-patch: fix rfc2047 address encoding with respect to rfc822 specials format-patch: make rfc2047 encoding more strict format-patch: introduce helper function last_line_length() format-patch: do not wrap rfc2047 encoded headers too late format-patch: do not wrap non-rfc2047 headers too early utf8: fix off-by-one wrapping of text
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index a544f15456..28791a7c31 100644
--- a/utf8.c
+++ b/utf8.c
@@ -353,7 +353,7 @@ retry:
c = *text;
if (!c || isspace(c)) {
- if (w < width || !space) {
+ if (w <= width || !space) {
const char *start = bol;
if (!c && text == start)
return w;