summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2013-12-13 01:40:26 +0100
committerGravatar Nikias Bassen2013-12-13 01:40:26 +0100
commit97be452e053122347c055e4abc220d8c719723d8 (patch)
tree4b5b81888435f863809657f6d4ebdb64d515d3e3
parent76d4a586c54147b980909f8c7b198a2e76b347ad (diff)
downloadlibplist-97be452e053122347c055e4abc220d8c719723d8.tar.gz
libplist-97be452e053122347c055e4abc220d8c719723d8.tar.bz2
base64: silence compiler warning by using correct type
-rw-r--r--src/base64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base64.c b/src/base64.c
index 83205c2..7128a5a 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -74,7 +74,8 @@ char *base64encode(const unsigned char *buf, size_t *size)
static int base64decode_block(unsigned char *target, const char *data, size_t data_size)
{
int w1,w2,w3,w4;
- int n,i;
+ int i;
+ size_t n;
if (!data || (data_size <= 0)) {
return 0;