Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
reencode_string: use size_t for string lengths
[gitweb.git]
/
strbuf.c
diff --git
a/strbuf.c
b/strbuf.c
index b0716ac585285a971c04952254c34a00aab9f0ef..e79758b9420a6f9eafce3ddebe156e87c7663076 100644
(file)
--- a/
strbuf.c
+++ b/
strbuf.c
@@
-134,7
+134,7
@@
void strbuf_ltrim(struct strbuf *sb)
int strbuf_reencode(struct strbuf *sb, const char *from, const char *to)
{
char *out;
-
in
t len;
+
size_
t len;
if (same_encoding(from, to))
return 0;