aboutsummaryrefslogtreecommitdiff
path: root/src/sg_xcopy.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-02-19 05:55:24 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-02-19 05:55:24 +0000
commit39ea1b548f21c006c311ace897b221b100bfa88d (patch)
tree764ecee434b161b62c41182a6bc09ce950b85258 /src/sg_xcopy.c
parent5bdce507b09d32f452a390c22cb98ae7f840c151 (diff)
downloadsg3_utils-39ea1b548f21c006c311ace897b221b100bfa88d.tar.gz
sg_raw: add --raw option (for CF in binary); sg_lib: add sg_get_nvme_opcode_name() and sg_is_aligned(); sg_vpd: fully implement Device Constituents vpage
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@753 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_xcopy.c')
-rw-r--r--src/sg_xcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_xcopy.c b/src/sg_xcopy.c
index 473d8fce..a1d45cca 100644
--- a/src/sg_xcopy.c
+++ b/src/sg_xcopy.c
@@ -67,7 +67,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "0.61 20180116";
+static const char * version_str = "0.62 20180218";
#define ME "sg_xcopy: "
@@ -588,7 +588,7 @@ scsi_encode_seg_desc(unsigned char *seg_desc, int seg_desc_type,
{
int seg_desc_len = 0;
- seg_desc[0] = seg_desc_type;
+ seg_desc[0] = (unsigned char)seg_desc_type;
seg_desc[1] = 0x0;
if (xcopy_flag_cat)
seg_desc[1] |= 0x1;