[stgt] [PATCH 14/15] ssc: fix SPACE count field calculation
    FUJITA Tomonori 
    fujita.tomonori at lab.ntt.co.jp
       
    Sun Oct  5 16:37:44 CEST 2008
    
    
  
Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/bs_ssc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index a7084d0..a502b32 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -61,7 +61,7 @@ static int32_t be24_to_2comp(uint8_t *c)
 {
 	int count;
 	count = (c[0] << 16) | (c[1] << 8) | c[2];
-	if (c[1] & 0x80)
+	if (c[0] & 0x80)
 		count += (0xff << 24);
 	return count;
 }
-- 
1.5.6.5
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
    
    
More information about the stgt
mailing list