fix cast/serial number

This commit is contained in:
Martijn van Brummelen
2018-10-05 23:11:30 +02:00
parent 0ecc90786d
commit e92ac3a870
2 changed files with 2 additions and 1 deletions

1
README
View File

@@ -24,6 +24,7 @@ v0.25
- Fix memory leaks (Thanks PartialVolume)
- Check right pointer (Thanks PartialVolume)
- Fix casting problem (Thanks PartialVolume)
- Fix serial number
v0.24
- use include values for version 0.17

View File

@@ -286,7 +286,7 @@ int main( int argc, char** argv )
*/
/* Print serial number of device if it exists. */
if ( strlen(c2[i]->identity.serial_no) ) {
if ( strlen((const char*)c2[i]->identity.serial_no) ) {
nwipe_log( NWIPE_LOG_INFO, "Device %s has serial number %s", c2[i]->device_name, c2[i]->identity.serial_no);
}