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: Simon Goldschmidt
Subject: [lwip-devel] [patch #6765] Supporting new line characters in inet_aton()
Date: Thu, 23 Apr 2009 16:33:45 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; de; rv:1.9.0.9) Gecko/2009040820 Firefox/3.0.9

Follow-up Comment #6, patch #6765 (project lwip):

Sorry, seems like I messed that up. I converted

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

to

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

since the first version returned always 'true' if c != 0.

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

seems to give the correct results, tested for:

"abc.de"
"127.0.0.1"
"127.0.0.1 "
"127.0.0.1n"
"127.0.0.1r"
"3com.com"
"3com.com "
"3com.com n"
"3com.comn"
"3com.comr"
"3com.comrn"
"3com.comrn"
"3com.comnr"

Anyone something against that?

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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