Home | History | Annotate | Download | only in sed

Lines Matching refs:buf2

350   static char *buf1, *buf2;
360 buf2 = ck_malloc (PATH_MAX + 1);
367 if (buf == buf2)
369 strcpy (buf1, buf2);
373 while ((rc = readlink (buf, buf2, buf_size)) == buf_size)
377 buf2 = ck_realloc (buf2, buf_size);
382 buf2 [rc] = '\0';
384 if (buf2[0] != '/' && (c = strrchr (buf, '/')) != NULL)
387 buf2 to be big enough. */
393 buf2 = ck_realloc (buf2, buf_size);
401 memcpy (buf1 + len, buf2, rc + 1);
406 /* Use buf2 as the buffer, it saves a strcpy if it is not pointing to
409 buf = buf2;