From 8124d2d493591f9027bc7da03fe9e84298afb077 Mon Sep 17 00:00:00 2001 From: Gerold Gruber Date: Mon, 2 Oct 2023 16:42:41 +0200 Subject: [PATCH] improved fix for issue #492 --- src/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index d5853bc..57a1add 100644 --- a/src/device.c +++ b/src/device.c @@ -244,7 +244,8 @@ int check_device( nwipe_context_t*** c, PedDevice* dev, int dcount ) for( idx = 0; idx < 20; idx++ ) { - if( isascii( next_device->identity.serial_no[idx] ) ) + if( isascii( next_device->identity.serial_no[idx] ) && + !iscntrl( next_device->identity.serial_no[idx] ) ) { next_device->device_serial_no[idx] = next_device->identity.serial_no[idx]; }