Logger: Fix unsigned integer underflow
Before this commit, the code in `replaceChars` would try to save the
value `-1` in `lenOfMsg` at the end of the loop.
@@ -109,7 +109,8 @@ static void replaceChars (char * str)
str[lenOfMsg] = '@';
else if (str[lenOfMsg] == '\f')
str[lenOfMsg] = '@';
- } while (lenOfMsg--);
+ lenOfMsg--;
+ } while (lenOfMsg);
str[last] = '\n';
}
