From 856220b264a24e6a3176dc94b7a12c3d08d1dfda Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 22 Feb 2012 12:30:24 +0000 Subject: [PATCH] [package] iwinfo: fix logic flaw in mtd partition check SVN-Revision: 30678 --- package/iwinfo/src/iwinfo_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2