Searched refs:safe_strlen (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/third_party/libusb/src/libusb/os/ |
D | windows_common.h | 45 #define safe_strcpy(dst, dst_max, src) safe_strcp(dst, dst_max, src, safe_strlen(src)+1) 46 …trncat(dst, dst_max, src, count) strncat(dst, src, safe_min(count, dst_max - safe_strlen(dst) - 1)) 47 #define safe_strcat(dst, dst_max, src) safe_strncat(dst, dst_max, src, safe_strlen(src)+1) 51 #define safe_strlen(str) ((str==NULL)?0:strlen(str)) macro
|
D | windows_usb.c | 162 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), &err_string[safe_strlen(err_string)], in windows_error_str() 163 ERR_BUFFER_SIZE - (DWORD)safe_strlen(err_string), NULL); in windows_error_str() 173 …for (i=safe_strlen(err_string)-1; (i>=0) && ((err_string[i]==0x0A) || (err_string[i]==0x0D)); i--)… in windows_error_str() 195 size = safe_strlen(path)+1; in sanitize_path() 604 htab_table[idx].str = (char*) malloc(safe_strlen(str)+1); in htab_hash() 610 memcpy(htab_table[idx].str, str, safe_strlen(str)+1); in htab_hash() 696 size_t len = safe_strlen(driver); in get_sub_api() 1210 lookup[k].list[safe_strlen(lookup[k].list)+1] = 0; in get_api_type() 1612 priv->usb_interface[0].path = (char*) calloc(safe_strlen(priv->path)+1, 1); in windows_get_device_list() 1614 safe_strcpy(priv->usb_interface[0].path, safe_strlen(priv->path)+1, priv->path); in windows_get_device_list() [all …]
|