Lines Matching refs:slen
399 slen = sizeof(**ma) * mentrycount;
400 - if ((*ma = CAST(struct magic *, malloc(slen))) == NULL) {
401 + if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) {
402 file_oomem(ms, slen);
3395 slen = MIN(m->vallen, sizeof(m->value.s));
3399 if (slen > 0 && m->str_flags == 0) {
3401 idx = m->str_range + slen;
3405 - m->value.s, slen));
3407 + m->value.s, slen, ms->search.s + idx));
3418 if (slen + idx > ms->search.s_len)
3453 - size_t slen = ms->search.s_len;
3455 - if (slen != 0) {
3456 - copy = CAST(char *, malloc(slen));
3461 - slen);
3483 - memcpy(copy, ms->search.s, slen);
3484 - copy[--slen] = '\0';