Merge branch 'master' of github.com:jclehner/nmrp-flash

This commit is contained in:
Joseph C. Lehner 2016-02-08 16:26:52 +01:00
commit 0eef7587b8
2 changed files with 4 additions and 2 deletions

BIN
nmrp-flash Executable file

Binary file not shown.

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