diff options
Diffstat (limited to 'src/sg_xcopy.c')
-rw-r--r-- | src/sg_xcopy.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sg_xcopy.c b/src/sg_xcopy.c index dcc32282..aa212eaa 100644 --- a/src/sg_xcopy.c +++ b/src/sg_xcopy.c @@ -68,7 +68,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "0.66 20180628"; +static const char * version_str = "0.67 20180705"; #define ME "sg_xcopy: " @@ -402,21 +402,21 @@ dd_filetype_str(int ft, char * buff) int off = 0; if (FT_DEV_NULL & ft) - off += snprintf(buff + off, 32, "null device "); + off += sg_scnpr(buff + off, 32, "null device "); if (FT_SG & ft) - off += snprintf(buff + off, 32, "SCSI generic (sg) device "); + off += sg_scnpr(buff + off, 32, "SCSI generic (sg) device "); if (FT_BLOCK & ft) - off += snprintf(buff + off, 32, "block device "); + off += sg_scnpr(buff + off, 32, "block device "); if (FT_FIFO & ft) - off += snprintf(buff + off, 32, "fifo (named pipe) "); + off += sg_scnpr(buff + off, 32, "fifo (named pipe) "); if (FT_ST & ft) - off += snprintf(buff + off, 32, "SCSI tape device "); + off += sg_scnpr(buff + off, 32, "SCSI tape device "); if (FT_RAW & ft) - off += snprintf(buff + off, 32, "raw device "); + off += sg_scnpr(buff + off, 32, "raw device "); if (FT_OTHER & ft) - off += snprintf(buff + off, 32, "other (perhaps ordinary file) "); + off += sg_scnpr(buff + off, 32, "other (perhaps ordinary file) "); if (FT_ERROR & ft) - snprintf(buff + off, 32, "unable to 'stat' file "); + sg_scnpr(buff + off, 32, "unable to 'stat' file "); return buff; } |