X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Tools%2FDiskTool%2Fsrc%2Factions.c;h=6cbd7b852629ba306ddc54680ec6510b3a085ac0;hb=d95b6765cd3550954fecba3d8ae1bc73792ac008;hp=51f5cd3f34f926eeb1ce7d02cad8ee1944e1102c;hpb=97159caf60a26cff3cc8f52e050a44d2492430f8;p=tpg%2Facess2.git diff --git a/Tools/DiskTool/src/actions.c b/Tools/DiskTool/src/actions.c index 51f5cd3f..6cbd7b85 100644 --- a/Tools/DiskTool/src/actions.c +++ b/Tools/DiskTool/src/actions.c @@ -60,8 +60,10 @@ int DiskTool_Copy(const char *Source, const char *Destination) char buf[1024]; size_t len, total = 0; - while( (len = VFS_Read(src, sizeof(buf), buf)) == sizeof(buf) ) - VFS_Write(dst, len, buf), total += len; + while( (len = VFS_Read(src, sizeof(buf), buf)) == sizeof(buf) ) { + VFS_Write(dst, len, buf); + total += len; + } VFS_Write(dst, len, buf), total += len; Log_Notice("DiskTool", "Copied %i from %s to %s", total, Source, Destination);