fixed copy&paste error in last change to lwip_itoa()

This commit is contained in:
goldsimon 2017-04-24 13:33:43 +02:00
parent 16a71473c1
commit 9c6da979ca

View File

@ -217,7 +217,7 @@ lwip_itoa(char* result, size_t bufsize, int number)
/* create the string in a temporary buffer since we don't know how long
it will get */
tmp = &result[bufsize-2];
while ((n != 0) && (result_len < (result_len - 1))) {
while ((n != 0) && (result_len < (bufsize - 1))) {
char val = '0' + (n % 10);
*tmp = val;
tmp--;