From 8cba8447f864c766fce882cb6318bad3fa808c72 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Fri, 17 Jul 2009 21:02:44 +0000 Subject: Allow access to the last sector of the ramdisk as well git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21930 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ramdisk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware') diff --git a/firmware/drivers/ramdisk.c b/firmware/drivers/ramdisk.c index c16c4fb675..0ea4012ef1 100644 --- a/firmware/drivers/ramdisk.c +++ b/firmware/drivers/ramdisk.c @@ -36,7 +36,7 @@ int ramdisk_read_sectors(IF_MV2(int drive,) int count, void* buf) { - if(start+count>=NUM_SECTORS) + if(start+count>NUM_SECTORS) { return -1; } @@ -49,7 +49,7 @@ int ramdisk_write_sectors(IF_MV2(int drive,) int count, const void* buf) { - if(start+count>=NUM_SECTORS) + if(start+count>NUM_SECTORS) { return -1; } -- cgit v1.2.3