mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
improved fix for issue #492
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user