dload.c : only call fwrite once
commit3cf0ee98c02e1f40954f0c2c508e16d33ca299ca
authorXavier Chantry <shiningxc@gmail.com>
Sat, 8 Aug 2009 13:20:24 +0000 (8 15:20 +0200)
committerDan McGee <dan@archlinux.org>
Sat, 8 Aug 2009 16:17:24 +0000 (8 11:17 -0500)
tree4b666332820637aee645cca30e4b7f40f2865990
parent68200676d2828f159d5dbdf184c3ad7de42c66d6
dload.c : only call fwrite once

I assume the loop was never iterated more than once, because the write
location was not updated at each loop iteration (buffer instead of buffer +
nwritten), yet we never had reports of corrupted download.

Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/dload.c