As for realloc(). It indeed does not guarantee that it will point out to the old chunk of memory. However it does guarantee that it will copy the relevant part of the memory. Reading man realloc: The contents will be unchanged to the minimum of the old and new sizes; So that should be just enough.
-- usb_find_devices() crashed with SIGSEGV in free() https://bugs.launchpad.net/bugs/427805 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs