Changes by: flatcap
Update of /cvsroot/linux-ntfs/linux-ntfs/libntfs
In directory usw-pr-cvs1:/tmp/cvs-serv30822/libntfs
Modified Files:
attrib.c
Log Message:
off by one error in realloc
Index: attrib.c
===================================================================
RCS file: /cvsroot/linux-ntfs/linux-ntfs/libntfs/attrib.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -U2 -r1.30 -r1.31
--- attrib.c 23 Apr 2002 16:10:48 -0000 1.30
+++ attrib.c 23 Apr 2002 17:00:03 -0000 1.31
@@ -413,6 +413,6 @@
int old_size, int new_size)
{
- old_size = (old_size * sizeof(run_list_element) + 0x1000) & ~0xfff;
- new_size = (new_size * sizeof(run_list_element) + 0x1000) & ~0xfff;
+ old_size = (old_size * sizeof(run_list_element) + 0xfff) & ~0xfff;
+ new_size = (new_size * sizeof(run_list_element) + 0xfff) & ~0xfff;
if (old_size == new_size)
return rl;
@@ -1000,5 +1000,4 @@
/* The merge was completed successfully. */
Dputs("Merged run list:");
- Dputs("res:");
ntfs_debug_dump_run_list(drl);
return drl;
|