lwip_itoa: fix converting 0 (bug #51729)

lwip_itoa would output the number 0 as \0.  This fixes the issue by
adding a special check before the normal conversion loop

This was found via shell cmd idxtoname and win32 port.  "lo0" should
be returned for index 1
This commit is contained in:
Joel Cunningham
2017-08-11 10:16:50 -05:00
parent 0cf405e24f
commit 9844049cb1
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,9 @@ HISTORY
++ Bugfixes:
2017-08-11: Joel Cunningham
* lwip_itoa: fix converting the number 0 (previously converted to '\0') (bug #51729)
2017-08-08: Dirk Ziegelmeier
* ip4_route_src: parameter order is reversed: ip4_route_src(dest, src) -> ip4_route_src(src, dest)
to make parameter order consistent with other ip*_route*() functions