Author: fireball
Date: Sun Aug 3 08:20:44 2008
New Revision: 35068
URL:
http://svn.reactos.org/svn/reactos?rev=35068&view=rev
Log:
- Fix a typo, now dosfsck really performs writes (and actually works).
Modified:
trunk/rosapps/applications/sysutils/dosfsck/io.c
Modified: trunk/rosapps/applications/sysutils/dosfsck/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/dosf…
==============================================================================
--- trunk/rosapps/applications/sysutils/dosfsck/io.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/dosfsck/io.c [iso-8859-1] Sun Aug 3 08:20:44
2008
@@ -181,7 +181,7 @@
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 */