diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-13 02:01:31 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-11-13 02:01:31 +0000 |
commit | 06055a99dd188cda35a4802966656a5b3d3bb288 (patch) | |
tree | 207cdb23f8257e270a30143fde23d2033901581f /src | |
parent | b556427c7bfe6c9da7e8669fc3501a6053879ec3 (diff) | |
download | sg3_utils-06055a99dd188cda35a4802966656a5b3d3bb288.tar.gz |
sg_logs: fix clang compile warning
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@983 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src')
-rw-r--r-- | src/sg_logs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sg_logs.c b/src/sg_logs.c index 29133cb1..ce6a7e98 100644 --- a/src/sg_logs.c +++ b/src/sg_logs.c @@ -37,7 +37,7 @@ #include "sg_unaligned.h" #include "sg_pr2serr.h" -static const char * version_str = "2.07 20221111"; /* spc6r06 + sbc5r03 */ +static const char * version_str = "2.08 20221112"; /* spc6r06 + sbc5r03 */ #define MY_NAME "sg_logs" @@ -4866,7 +4866,7 @@ show_sas_port_param(const uint8_t * bp, int param_len, struct opts_t * op, } else { cp = strchr(b, '\t'); if (cp) { - cp = '\0'; + *cp = '\0'; sgj_pr_hr(jsp, " %s\n", b); sgj_pr_hr(jsp, " %s\n", cp + 1); } else |