aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-02-22 12:30:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-02-22 12:30:24 +0000
commita6c89c02ca73c34aae77b9e262ba3c39cab3727e (patch)
tree3bb84d4e96acc4690403f6b4933ae6f5e2a4f215 /package
parentd85a504d3c187537e17c47d38924bf117f590f76 (diff)
downloadupstream-a6c89c02ca73c34aae77b9e262ba3c39cab3727e.tar.gz
upstream-a6c89c02ca73c34aae77b9e262ba3c39cab3727e.tar.bz2
upstream-a6c89c02ca73c34aae77b9e262ba3c39cab3727e.zip
iwinfo: fix logic flaw in mtd partition check
SVN-Revision: 30678
Diffstat (limited to 'package')
-rw-r--r--package/iwinfo/src/iwinfo_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/iwinfo/src/iwinfo_utils.c b/package/iwinfo/src/iwinfo_utils.c
index 5ca101683f..b21f791a65 100644
--- 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;