projects
/
profile
/
ivi
/
can-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d0db9
)
Fixed condition pointed out by Uwe Bonnes:
author
Oliver Hartkopp
<socketcan@hartkopp.net>
Thu, 26 Jun 2008 14:35:46 +0000
(14:35 +0000)
committer
Oliver Hartkopp
<socketcan@hartkopp.net>
Thu, 26 Jun 2008 14:35:46 +0000
(14:35 +0000)
https://lists.berlios.de/pipermail/socketcan-core/2008-June/001625.html
canplayer.c
patch
|
blob
|
history
diff --git
a/canplayer.c
b/canplayer.c
index
f1d6d7e
..
799a64a
100644
(file)
--- a/
canplayer.c
+++ b/
canplayer.c
@@
-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;