--- ideviceimagemounter.c~ 2010-03-09 10:27:57.000000000 +0100 +++ ideviceimagemounter.c 2010-05-25 18:38:55.688387274 +0200 @@ -404,7 +404,7 @@ } char buf[8192]; - size_t amount = 0; + unsigned int amount = 0; do { amount = fread(buf, 1, sizeof(buf), f); if (amount > 0) {