We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c42aba0 commit be79b74Copy full SHA for be79b74
radio.c
@@ -291,9 +291,9 @@ void radio_validate_config(const char *filename) {
291
292
// First, find out which radio it is.
293
while (fgets(line, sizeof(line), conf)) {
294
- if (strnstr(line, "Radio:", strlen(line))) {
+ if (strstr(line, "Radio:")) {
295
for (i = 0; radio_tab[i].ident; i++) {
296
- if (strnstr(line, radio_tab[i].ident, strlen(line))) goto found;
+ if (strstr(line, radio_tab[i].ident)) goto found;
297
}
298
299
0 commit comments