Putty

The fragment is taken from Putty project. Ineffective code is detected by the following diagnostic: V814 Decreased performance. Calls to the ‘strlen’ function have being made multiple times when a condition for the loop’s continuation was calculated.