EOF handling

This commit is contained in:
Cacodemon345
2024-03-12 19:37:16 +06:00
parent 074de35653
commit 7d28e77273

View File

@@ -178,6 +178,9 @@ modem_read_phonebook_file(modem_t* modem, const char* path)
continue;
}
if (res == EOF)
break;
if (strspn(entry.phone, "01234567890*=,;#+>") != strlen(entry.phone)) {
/* Invalid characters. */
continue;