[Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
FlashVolumeManagerP.nc, 1.12, 1.13
Razvan Musaloiu-E.
razvanm at users.sourceforge.net
Mon Jan 21 16:41:02 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv17268/tos/lib/net/Deluge/FlashVolumeManager
Modified Files:
FlashVolumeManagerP.nc
Log Message:
Check the image number against the DELUGE_NUM_VOLUMES. The bug was reported by David "wizzardx".
Index: FlashVolumeManagerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerP.nc,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** FlashVolumeManagerP.nc 17 Jan 2008 21:51:51 -0000 1.12
--- FlashVolumeManagerP.nc 22 Jan 2008 00:40:59 -0000 1.13
***************
*** 187,191 ****
// Converts the image number that the user wants to the real image number
! imgNum = imgNum2volumeId[request->imgNum];
if (imgNum != 0xFF) {
--- 187,191 ----
// Converts the image number that the user wants to the real image number
! imgNum = request->imgNum < DELUGE_NUM_VOLUMES ? imgNum2volumeId[request->imgNum] : 0xFF;
if (imgNum != 0xFF) {
More information about the Tinyos-2-commits
mailing list