diff -r fa1df4b99609 -r ebe688cedc25 mmsengine/mmsserver/src/mmsreceivemessage.cpp --- a/mmsengine/mmsserver/src/mmsreceivemessage.cpp Thu Aug 19 09:51:11 2010 +0300 +++ b/mmsengine/mmsserver/src/mmsreceivemessage.cpp Tue Aug 31 15:11:31 2010 +0300 @@ -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 funtion sets the status, and later the response will be sent + // The function 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 );