Debug
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 08:47:39 +0000 (16:47 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 08:47:39 +0000 (16:47 +0800)
Kernel/vfs/fs/fat.c

index 533e9cc..c7f2d4d 100644 (file)
@@ -349,9 +349,9 @@ Uint64 FAT_Read(tVFS_Node *node, Uint64 offset, Uint64 length, void *buffer)
        }\r
        // Clamp Size\r
        if(offset + length > node->Size) {\r
-               Log("FAT_Read: Reading past EOF (%i+%i+ > %i), clamped to %i",\r
-                       offset, length, node->Size, offset - node->Size);\r
-               length = offset - node->Size;\r
+               Log("FAT_Read: Reading past EOF (%lli + %lli > %lli), clamped to %lli",\r
+                       offset, length, node->Size, node->Size - offset);\r
+               length = node->Size - offset;\r
        }\r
        \r
        // Single Cluster including offset\r

UCC git Repository :: git.ucc.asn.au