fixed bug in faAlloc()
authorroot <devnull@localhost>
Wed, 27 Dec 1995 17:04:12 +0000 (17:04 +0000)
committerroot <devnull@localhost>
Wed, 27 Dec 1995 17:04:12 +0000 (17:04 +0000)
CVS patchset: 92
CVS date: 1995/12/27 17:04:12

lib/falloc.c

index cda0d77..ad524df 100644 (file)
@@ -188,6 +188,7 @@ unsigned int faAlloc(faFile fa, unsigned int size) { /* returns 0 on failure */
        block.size = size;
        block.isFree = 0;
 
+        lseek(fa->fd, newBlock, SEEK_SET);
        if (write(fa->fd, &block, sizeof(block)) != sizeof(block)) {
            free(space);        
            return 0;