From dad84047e8eba4f4cd4736c856058a213627df85 Mon Sep 17 00:00:00 2001 From: Alexander Moibenko Date: Tue, 5 Mar 2024 09:57:28 +0300 Subject: [PATCH] One more attempt to fix SN --- mtx-1.3.12/mtx.spec | 2 +- mtx-1.3.12/mtxl.c | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mtx-1.3.12/mtx.spec b/mtx-1.3.12/mtx.spec index 8b5646f..2d03918 100644 --- a/mtx-1.3.12/mtx.spec +++ b/mtx-1.3.12/mtx.spec @@ -1,6 +1,6 @@ Name: mtx Version: 1.3.12 -Release: 20fnal_jinr%{?dist} +Release: 21fnal_jinr%{?dist} Summary: SCSI media changer control program License: GPLv2 Group: Applications/System diff --git a/mtx-1.3.12/mtxl.c b/mtx-1.3.12/mtxl.c index 1e46951..3b247be 100644 --- a/mtx-1.3.12/mtxl.c +++ b/mtx-1.3.12/mtxl.c @@ -619,11 +619,9 @@ void copy_physical_location(unsigned char *src, unsigned char *dest) void copy_char_buffer(unsigned char *src, unsigned char *dest, int num) { int i; - char *dest_tmp; + unsigned char *dest_tmp; dest_tmp = dest; - while ((*src<= 32) || (*src > 127)) { - src++; - } + for (i=0; i <= num; i++) { *dest_tmp++ = 0;