]> git.ipfire.org Git - thirdparty/git.git/commit - utf8.c
reencode_string: use size_t for string lengths
authorJeff King <peff@peff.net>
Tue, 24 Jul 2018 10:50:33 +0000 (06:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Jul 2018 17:19:29 +0000 (10:19 -0700)
commitc7d017d7e1cca37ca20f73c11fa9f1b319a2c3a5
tree41b17395ddd01ae0436d78b906578f7b4861c054
parent77aa03d6c7f07db4a5d34afe8f5b3a55e801057c
reencode_string: use size_t for string lengths

The iconv interface takes a size_t, which is the appropriate
type for an in-memory buffer. But our reencode_string_*
functions use integers, meaning we may get confusing results
when the sizes exceed INT_MAX. Let's use size_t
consistently.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
pretty.c
strbuf.c
utf8.c
utf8.h