return NT_STATUS_NO_MEMORY;
}
- p = strchr(s, ':');
+ p = strchr_m(s, ':');
if (p == NULL) {
return NT_STATUS_NO_MEMORY;
}
return NT_STATUS_INVALID_PARAMETER;
}
- p = strchr(keys[0], ':');
+ p = strchr_m(keys[0], ':');
if (p == NULL) {
return NT_STATUS_NO_MEMORY;
}
file++;
}
- p = strchr(file, ',');
+ p = strchr_m(file, ',');
if (p != NULL) {
*p = '\0';
}
return NT_STATUS_NO_MEMORY;
}
- p = strchr(s, ':');
+ p = strchr_m(s, ':');
if (p == NULL) {
return NT_STATUS_DRIVER_INTERNAL_ERROR;
}
status = gp_inifile_enum_section(ctx, str, &num_keys, &keys, &values);
if (NT_STATUS_IS_OK(status)) {
for (i = 0; i < num_keys; i++) {
- p = strchr(keys[i], ':');
+ p = strchr_m(keys[i], ':');
if (p == NULL) {
return NT_STATUS_INVALID_PARAMETER;
}
if (NT_STATUS_IS_OK(status)) {
s = get_string_unquote(s);
- p = strchr(s, ',');
+ p = strchr_m(s, ',');
if (p == NULL) {
return NT_STATUS_INVALID_PARAMETER;
}
return NT_STATUS_NO_MEMORY;
}
- p = strchr(str, ',');
+ p = strchr_m(str, ',');
if (p) {
*p = '\0';
p++;
const char *user;
char *c;
- c = strchr(users[i], separator);
+ c = strchr_m(users[i], separator);
if (c == NULL) {
/*
const char *group;
char *c;
- c = strchr(groups[i], separator);
+ c = strchr_m(groups[i], separator);
if (c == NULL) {
/*
p += 2; /* Skip the double slash */
/* See if any options were specified */
- if ((q = strrchr(p, '?')) != NULL ) {
+ if ((q = strrchr_m(p, '?')) != NULL ) {
/* There are options. Null terminate here and point to them */
*q++ = '\0';
return NULL;
}
- name = strchr(line, ' ');
+ name = strchr_m(line, ' ');
if (name == NULL) {
return NULL;
}
/* check for OID in valuename */
- oid_string = strchr(r->in.value_name, ',');
+ oid_string = strchr_m(r->in.value_name, ',');
if (oid_string) {
*oid_string = '\0';
oid_string++;
fstrcpy(result[i].name, users[i]);
- p = strchr(users[i], *lp_winbind_separator());
+ p = strchr_m(users[i], *lp_winbind_separator());
DEBUG(3, ("%s\n", users[i]));
address = (char *)val->data;
- p = strchr(address, ';');
+ p = strchr_m(address, ';');
if (!p) {
/* support old entries, with only the address */
addr->address = (const char *)talloc_steal(addr, val->data);
goto failed;
}
wins_owner = p + 10;
- p = strchr(wins_owner, ';');
+ p = strchr_m(wins_owner, ';');
if (!p) {
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
goto failed;
}
expire_time = p + 11;
- p = strchr(expire_time, ';');
+ p = strchr_m(expire_time, ';');
if (!p) {
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
goto failed;
if (test_data->upn) {
char *p;
test_data->username = talloc_strdup(test_data, upn);
- p = strchr(test_data->username, '@');
+ p = strchr_m(test_data->username, '@');
if (p) {
*p = '\0';
p++;