Fixed condition pointed out by Uwe Bonnes:
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001625.htmlpull/7/head
parent
e7d0db9f21
commit
34703ac659
|
|
@ -346,7 +346,7 @@ int main(int argc, char **argv)
|
|||
if (buf[j] == '=')
|
||||
break;
|
||||
}
|
||||
if (buf[j] != '=') {
|
||||
if ((j == BUFSZ) || (buf[j] != '=')) {
|
||||
fprintf(stderr, "'=' missing in assignment!\n");
|
||||
print_usage(basename(argv[0]));
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue