From 818ab5f6021b7babd8e7089d88d76491088e31be Mon Sep 17 00:00:00 2001 From: ksherlock Date: Sun, 29 Jan 2012 05:33:16 +0000 Subject: [PATCH] fix bug when adding new file (apfm put) git-svn-id: https://profuse.googlecode.com/svn/branches/v2@402 aa027e90-d47c-11dd-86d7-074df07e0730 --- Pascal/VolumeEntry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pascal/VolumeEntry.cpp b/Pascal/VolumeEntry.cpp index 07e3453..708b080 100644 --- a/Pascal/VolumeEntry.cpp +++ b/Pascal/VolumeEntry.cpp @@ -600,7 +600,7 @@ FileEntryPointer VolumeEntry::create(const char *name, unsigned blocks) { FileEntryPointer e = *iter; - unsigned freeSpace = e->_firstBlock - _lastBlock; + unsigned freeSpace = e->_firstBlock - lastBlock; // this could do something stupid like selecting a slot with only 1 free block but too bad. if (freeSpace < blocks)