diff --git a/src/torrent2json.c b/src/torrent2json.c index 1a0f2fc..c3888cd 100644 --- a/src/torrent2json.c +++ b/src/torrent2json.c @@ -53,7 +53,7 @@ get_string(int chr) /* in this case 'chr' first digit of string lenght */ unsigned int len = (unsigned char) chr - '0'; int c = '\0'; - int i = 0; + unsigned int i = 0; unsigned char *buf = NULL; /* first, get string lenght */