Fix warning when building on 32-bit OSX

This commit is contained in:
Joseph C. Lehner 2016-02-08 16:05:53 +01:00
parent d94e849b16
commit 138615e1e8

6
tftp.c
View file

@ -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;
}
}