From 05ec4400edcfc2cc7f37c4db7f078da7b2761847 Mon Sep 17 00:00:00 2001 From: Alexander Moibenko Date: Mon, 22 Jan 2024 20:51:20 +0300 Subject: [PATCH] More changes for problem with Serial Number copying. --- mtx-1.3.12/mtxl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mtx-1.3.12/mtxl.c b/mtx-1.3.12/mtxl.c index 8a9e34b..a8dbceb 100644 --- a/mtx-1.3.12/mtxl.c +++ b/mtx-1.3.12/mtxl.c @@ -632,12 +632,10 @@ void copy_char_buffer(unsigned char *src, unsigned char *dest, int num) for (i=0; i < num; i++) { if (isalnum(*src)) { - *dest = *src; + *dest++ = *src; } src++; - dest++; } - *dest = 0; } /* This #%!@# routine has more parameters than I can count! */