/* We got a match! - Scan 'ber' for 'cn' values */
z = ldap_count_values_len(ber);
for (j = 0; j < z; j++)
- xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),ber[j]->bv_len));
+ xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),static_cast<size_t>(ber[j]->bv_len)));
ldap_value_free_len(l->val);
l->val = NULL;
ldap_value_free_len(ber);
/* We got a match! - Scan 'ber' for 'cn' values */
z = ldap_count_values_len(ber);
for (j = 0; j < z; j++)
- xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),ber[j]->bv_len));
+ xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),static_cast<size_t>(ber[j]->bv_len)));
ldap_value_free_len(l->val);
l->val = NULL;
ldap_value_free_len(ber);
/* We got a match! - Scan 'ber' for 'cn' values */
z = ldap_count_values_len(ber);
for (j = 0; j < z; j++)
- xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),ber[j]->bv_len));
+ xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),static_cast<size_t>(ber[j]->bv_len)));
ldap_value_free_len(l->val);
l->val = NULL;
ldap_value_free_len(ber);
/* We got a match! - Scan 'ber' for 'cn' values */
z = ldap_count_values_len(ber);
for (j = 0; j < z; j++)
- xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),ber[j]->bv_len));
+ xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),static_cast<size_t>(ber[j]->bv_len)));
ldap_value_free_len(l->val);
l->val = NULL;
ldap_value_free_len(ber);
/* We got a match! - Scan 'ber' for 'cn' values */
z = ldap_count_values_len(ber);
for (j = 0; j < z; j++)
- xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),ber[j]->bv_len));
+ xstrncpy(uid, ber[j]->bv_val, min(sizeof(uid),static_cast<size_t>(ber[j]->bv_len)));
ldap_value_free_len(l->val);
l->val = NULL;
ldap_value_free_len(ber);