lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #6765] Supporting new line characters in inet_aton()


From: Frédéric Bernon
Subject: [lwip-devel] [patch #6765] Supporting new line characters in inet_aton()
Date: Thu, 23 Apr 2009 19:23:00 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr; rv:1.9.0.9) Gecko/2009040821 Firefox/3.0.9 (.NET CLR 3.5.30729)

Update of patch #6765 (project lwip):

             Open/Closed:                  Closed => Open                   

    _______________________________________________________

Follow-up Comment #7:

I test again, but inet_addr("3com.com") return 0x3 (and in my point of view,
we should got 0x00). It's due to the fact we leave the loop when we reach the
first 'c', and in your change, isprint('c') is true, so, don't go to the next
line (return 0).

To my point of view, something like this should be better :

if (c != ' ' && !isspace(c)) 




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6765>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]