--- a/mmsengine/mmsserver/src/mmsreceivemessage.cpp Tue Aug 31 15:11:31 2010 +0300
+++ b/mmsengine/mmsserver/src/mmsreceivemessage.cpp Wed Sep 01 12:31:54 2010 +0100
@@ -505,7 +505,7 @@
// The function IsNotificationInsaneL() checks if the notification
// has incorrect message type or incorrect major version number.
// If the message is unrecognized, the response will be "unrecognized"
- // The function sets the status, and later the response will be sent
+ // The funtion sets the status, and later the response will be sent
// but there is no need to check for expiration or disk space in
// case the message will be rejected anyway.
@@ -2993,7 +2993,7 @@
// Check if we fond enough old messages to free space.
if ( deleteCount > 0 )
{
- for ( i = selection->Count(); i > deleteCount; ++i )
+ for ( i = selection->Count(); i > deleteCount; i-- )
{
// We may be able to leave some entries
selection->Delete( i - 1 );