Lines Matching refs:buf
644 char *buf;
647 char buf[PSBUFSIZE / 2];
681 buf = (char *) sm_malloc(len);
682 if (buf == NULL)
687 *buf = '\0';
692 end = sm_strlcat(buf, mxhosts[i], len);
695 buf[end] = map->map_coldelim;
696 buf[end + 1] = '\0';
701 truncate_at_delim(buf, PSBUFSIZE / 2, map->map_coldelim);
703 p = buf;
715 if (len + slen + 2 > sizeof(buf))
722 (void) sm_strlcpy(p, mxhosts[i], sizeof(buf) - len);
728 result = map_rewrite(map, buf, len, av);
730 sm_free(buf);