Fixed condition pointed out by Uwe Bonnes:

https://lists.berlios.de/pipermail/socketcan-core/2008-June/001625.html
This commit is contained in:
Oliver Hartkopp
2008-06-26 14:35:46 +00:00
parent e7d0db9f21
commit 34703ac659
+1 -1
View File
@@ -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;