aboutsummaryrefslogtreecommitdiff
path: root/src/sg_get_config.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2008-03-28 02:42:58 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2008-03-28 02:42:58 +0000
commit5dd770c7c4aaa582a9fe694384bfd52a78053362 (patch)
tree9ee298b18dc47cc216af67dd286db243f09a019f /src/sg_get_config.c
parent60ca8aa1435fbdd3d070fcc9d4b7019a68186a1a (diff)
downloadsg3_utils-5dd770c7c4aaa582a9fe694384bfd52a78053362.tar.gz
audit of 'uchar uc=0x80; ulong ul; ul = uc << 24;' class of problems
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@166 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_get_config.c')
-rw-r--r--src/sg_get_config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_get_config.c b/src/sg_get_config.c
index a839b18d..7f10d943 100644
--- a/src/sg_get_config.c
+++ b/src/sg_get_config.c
@@ -49,7 +49,7 @@
*/
-static char * version_str = "0.34 20080318"; /* mmc6r01 */
+static char * version_str = "0.34 20080327"; /* mmc6r01 */
#define MX_ALLOC_LEN 8192
#define NAME_BUFF_SZ 64
@@ -799,8 +799,8 @@ decode_feature(int feature, unsigned char * ucp, int len)
feature);
printf(" Disc control blocks:\n");
for (k = 4; k < len; k += 4) {
- printf(" 0x%x\n", (ucp[k] << 24) + (ucp[k + 1] << 16) +
- (ucp[k + 2] << 8) + ucp[k + 3]);
+ printf(" 0x%x\n", ((unsigned int)ucp[k] << 24) +
+ (ucp[k + 1] << 16) + (ucp[k + 2] << 8) + ucp[k + 3]);
}
break;
case 0x10b: /* DVD CPRM */