The knowledge you have, working with one language isn’t always applicable to another language

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.

Continue reading