From c119a275c52edbaa84f26b1f169301e99be15554 Mon Sep 17 00:00:00 2001 From: charles Date: Mon, 13 Oct 2008 03:47:26 +0000 Subject: [PATCH 1/1] Fix looping on handles --- direct/yaffsfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/yaffsfs.c b/direct/yaffsfs.c index 5461a48..9084038 100644 --- a/direct/yaffsfs.c +++ b/direct/yaffsfs.c @@ -24,7 +24,7 @@ #endif -const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.22 2008-08-19 23:14:22 charles Exp $"; +const char *yaffsfs_c_version="$Id: yaffsfs.c,v 1.23 2008-10-13 03:47:26 charles Exp $"; // configurationList is the list of devices that are supported static yaffsfs_DeviceConfiguration *yaffsfs_configurationList; @@ -489,7 +489,7 @@ int yaffs_open(const YCHAR *path, int oflag, int mode) // Check if the object is already in use alreadyOpen = alreadyExclusive = 0; - for(i = 0; i <= YAFFSFS_N_HANDLES; i++) + for(i = 0; i < YAFFSFS_N_HANDLES; i++) { if(i != handle && -- 2.30.2