mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
Fixed condition pointed out by Uwe Bonnes:
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001625.html
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user