projects
/
openwrt
/
staging
/
ldir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85a504
)
iwinfo: fix logic flaw in mtd partition check
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 22 Feb 2012 12:30:24 +0000
(12:30 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 22 Feb 2012 12:30:24 +0000
(12:30 +0000)
SVN-Revision: 30678
package/iwinfo/src/iwinfo_utils.c
patch
|
blob
|
history
diff --git
a/package/iwinfo/src/iwinfo_utils.c
b/package/iwinfo/src/iwinfo_utils.c
index 5ca101683ffa480af170f23aecdb6896d3ed26a4..b21f791a65ce0aebb8f80d970eb6bfd5a95b4ece 100644
(file)
--- a/
package/iwinfo/src/iwinfo_utils.c
+++ b/
package/iwinfo/src/iwinfo_utils.c
@@
-165,7
+165,7
@@
int iwinfo_hardware_id_from_mtd(struct iwinfo_hardware_id *id)
while (fgets(buf, sizeof(buf), mtd) > 0)
{
if (fscanf(mtd, "mtd%d: %*x %x %127s", &off, &len, buf) < 3 ||
-
strcmp(buf, "\"boardconfig\"") || strcmp(buf, "\"EEPROM\""
))
+
(strcmp(buf, "\"boardconfig\"") && strcmp(buf, "\"EEPROM\"")
))
{
off = -1;
continue;