improved fix for issue #492

This commit is contained in:
Gerold Gruber
2023-10-02 16:42:41 +02:00
parent 7c9939e228
commit 8124d2d493

View File

@@ -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];
}