Fix warning when building on 32-bit OSX
This commit is contained in:
parent
d94e849b16
commit
138615e1e8
1 changed files with 4 additions and 2 deletions
6
tftp.c
6
tftp.c
|
@ -60,8 +60,10 @@ static const char *leafname(const char *path)
|
|||
|
||||
static bool is_netascii(const char *str)
|
||||
{
|
||||
for (; *str; ++str) {
|
||||
if (*str < 0x20 || *str > 0x7f) {
|
||||
uint8_t *p = (uint8_t*)str;
|
||||
|
||||
for (; *p; ++p) {
|
||||
if (*p < 0x20 || *p > 0x7f) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue