- Fix a typo, now dosfsck really performs writes (and actually works).
authorAleksey Bragin <aleksey@reactos.org>
Sun, 3 Aug 2008 13:20:44 +0000 (13:20 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Sun, 3 Aug 2008 13:20:44 +0000 (13:20 +0000)
svn path=/trunk/; revision=35068

rosapps/applications/sysutils/dosfsck/io.c

index 975438f..0ccf41d 100644 (file)
@@ -181,7 +181,7 @@ void fs_write(loff_t pos,int size,void *data)
             if (read(fd,scratch,readsize_aligned) < 0) pdie("Read %d bytes at %I64d",size,pos);
 
             /* Patch data in memory */
-            memcpy(data, (char *)scratch+seek_delta, size);
+            memcpy((char *)scratch+seek_delta, data, size);
         }
 
         /* Write it back */