safe_min 43 third_party/libusb/src/libusb/os/windows_common.h #define safe_strcp(dst, dst_max, src, count) do {memcpy(dst, src, safe_min(count, dst_max)); \ safe_min 44 third_party/libusb/src/libusb/os/windows_common.h ((char*)dst)[safe_min(count, dst_max)-1] = 0;} while(0) safe_min 46 third_party/libusb/src/libusb/os/windows_common.h #define safe_strncat(dst, dst_max, src, count) strncat(dst, src, safe_min(count, dst_max - safe_strlen(dst) - 1))