Merge branch 'master' of github.com:jclehner/nmrp-flash
This commit is contained in:
commit
0eef7587b8
2 changed files with 4 additions and 2 deletions
BIN
nmrp-flash
Executable file
BIN
nmrp-flash
Executable file
Binary file not shown.
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