diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:47 -0700 |
commit | 00da9b2091ef8d1955fa2f021b8ba111ce6a5fed (patch) | |
tree | 6f06221912c327a5e92ccee1c8ecd0b3bfdd8459 /convert.c | |
parent | 26a46437ecfd8ca9ae6c6f59e4905ef301d5a56f (diff) | |
parent | 2b647a05d7223beacba076e45b3920a8621d28e7 (diff) | |
download | git-00da9b2091ef8d1955fa2f021b8ba111ce6a5fed.tar.gz |
Merge branch 'bb/pedantic'
The codebase has been updated to compile cleanly with -pedantic
option.
* bb/pedantic:
utf8.c: avoid char overflow
string-list.c: avoid conversion from void * to function pointer
sequencer.c: avoid empty statements at top level
convert.c: replace "\e" escapes with "\033".
fixup! refs/refs-internal.h: avoid forward declaration of an enum
refs/refs-internal.h: avoid forward declaration of an enum
fixup! connect.h: avoid forward declaration of an enum
connect.h: avoid forward declaration of an enum
Diffstat (limited to 'convert.c')
-rw-r--r-- | convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -335,7 +335,7 @@ static void trace_encoding(const char *context, const char *path, strbuf_addf(&trace, "%s (%s, considered %s):\n", context, path, encoding); for (i = 0; i < len && buf; ++i) { strbuf_addf( - &trace,"| \e[2m%2i:\e[0m %2x \e[2m%c\e[0m%c", + &trace, "| \033[2m%2i:\033[0m %2x \033[2m%c\033[0m%c", i, (unsigned char) buf[i], (buf[i] > 32 && buf[i] < 127 ? buf[i] : ' '), |