Fix parsing of port number

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1659 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-03-28 20:38:13 +00:00
parent 540b7c48c9
commit 388b883a1d

View File

@ -109,8 +109,9 @@ int uip_parsehttpurl(const char *url, uint16 *port,
if (*src == ':')
{
uint16 accum = 0;
src++;
while (*src >= '0' && *src <= 9)
src++; /* Skip over the colon */
while (*src >= '0' && *src <= '9')
{
accum = 10*accum + *src - '0';
src++;