aboutsummaryrefslogtreecommitdiff
path: root/src/sg_get_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_get_config.c')
-rw-r--r--src/sg_get_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_get_config.c b/src/sg_get_config.c
index 672a8a55..de46fb2a 100644
--- a/src/sg_get_config.c
+++ b/src/sg_get_config.c
@@ -49,7 +49,7 @@
*/
-static char * version_str = "0.31 20071212"; /* mmc6r01 */
+static char * version_str = "0.31 20071214"; /* mmc6r01 */
#define MX_ALLOC_LEN 8192
#define NAME_BUFF_SZ 64
@@ -745,7 +745,7 @@ static void decode_feature(int feature, unsigned char * ucp, int len)
printf(" additional length [%d] too short\n", len - 4);
break;
}
- if (len < 8)
+ if (len > 4)
printf(" M5=%d\n", !!(ucp[4] & 0x1));
break;
case 0x105: /* Timeout */