Home
last modified time | relevance | path

Searched refs:safe_strlen (Results 1 – 3 of 3) sorted by relevance

/external/libusb/libusb/os/
Dwindows_common.h53 #define safe_strcpy(dst, dst_max, src) safe_strcp(dst, dst_max, src, safe_strlen(src)+1)
54 …trncat(dst, dst_max, src, count) strncat(dst, src, safe_min(count, dst_max - safe_strlen(dst) - 1))
55 #define safe_strcat(dst, dst_max, src) safe_strncat(dst, dst_max, src, safe_strlen(src)+1)
59 #define safe_strlen(str) ((str==NULL)?0:strlen(str)) macro
Dwindows_nt_common.c96 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), &err_string[safe_strlen(err_string)], in windows_error_str()
97 ERR_BUFFER_SIZE - (DWORD)safe_strlen(err_string), NULL); in windows_error_str()
109 …for (i = safe_strlen(err_string) - 1; (i >= 0) && ((err_string[i] == 0x0A) || (err_string[i] == 0x… in windows_error_str()
Dwindows_winusb.c172 size = safe_strlen(path) + 1; in sanitize_path()
564 size_t len = safe_strlen(driver); in get_sub_api()
1161 lookup[k].list[safe_strlen(lookup[k].list) + 1] = 0; in get_api_type()
2579 …if (safe_strncmp(dev_path_no_guid, priv->usb_interface[iface].path, safe_strlen(dev_path_no_guid))… in winusbx_claim_interface()