mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
fixed warning
git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@171 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
@ -1022,7 +1022,7 @@ static int sanitizehost(char *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Enforce some basic URL rules... */
|
/* Enforce some basic URL rules... */
|
||||||
if ((isalnum(*buf) == 0 && *buf != '-' && *buf != '.') ||
|
if ((isalnum((int)(*buf)) == 0 && *buf != '-' && *buf != '.') ||
|
||||||
(*buf == '.' && *(buf+1) == '.') ||
|
(*buf == '.' && *(buf+1) == '.') ||
|
||||||
(*buf == '.' && *(buf+1) == '-') ||
|
(*buf == '.' && *(buf+1) == '-') ||
|
||||||
(*buf == '-' && *(buf+1) == '.'))
|
(*buf == '-' && *(buf+1) == '.'))
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user