Changes by: flatcap
Update of /cvsroot/linux-ntfs/ntfs-driver-tng/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv13951
Modified Files:
compat.c
Log Message:
malloc was a bit, er, crap
Index: compat.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfs-driver-tng/scripts/compat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -U2 -r1.2 -r1.3
--- compat.c 10 Feb 2002 18:52:32 -0000 1.2
+++ compat.c 10 Feb 2002 19:14:52 -0000 1.3
@@ -214,5 +214,5 @@
{
ntfs_a++;
- return malloc(PAGE_SIZE);
+ return malloc((size + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1));
}
|