mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-12 22:14:25 +00:00
fixed copy&paste error in last change to lwip_itoa()
This commit is contained in:
parent
16a71473c1
commit
9c6da979ca
@ -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--;
|
||||
|
Loading…
x
Reference in New Issue
Block a user