diff options
author | Jeff King <peff@peff.net> | 2012-11-09 12:42:32 -0500 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-09 12:42:32 -0500 |
commit | 64b22a58949cd56c6ce586c1b9da1b1d32a2889e (patch) | |
tree | 151745b372c92aab204669af109fc36ecaa2735c /utf8.c | |
parent | 15ba878a1dc4ae929ed121c109a9ff7d35149bea (diff) | |
parent | 25dc8dad3a7c9f5426f549701e22eec1f894fec8 (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |