src/main/c/Posix/PosixHelperFunctions.c [1542:1559]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if (port) { // See if device has changed locations port->enumerated = 1; if (isUSB) { int oldLength = strlen(port->portLocation); int newLength = strlen(portLocation); if (oldLength != newLength) { port->portLocation = (char*)realloc(port->portLocation, newLength + 1); strcpy(port->portLocation, portLocation); } else if (memcmp(port->portLocation, portLocation, newLength)) strcpy(port->portLocation, portLocation); } } else - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/main/c/Posix/PosixHelperFunctions.c [1732:1749]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if (port) { // See if device has changed locations port->enumerated = 1; if (isUSB) { int oldLength = strlen(port->portLocation); int newLength = strlen(portLocation); if (oldLength != newLength) { port->portLocation = (char*)realloc(port->portLocation, newLength + 1); strcpy(port->portLocation, portLocation); } else if (memcmp(port->portLocation, portLocation, newLength)) strcpy(port->portLocation, portLocation); } } else - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -