Project

General

Profile

Bug #4694 ยป svcs.c.patch

Eric Sproul, 2014-03-20 09:50 PM

View differences:

usr/src/cmd/svc/svcs/svcs.c
1002 1002

  
1003 1003
/* CTID */
1004 1004
#define        CTID_COLUMN_WIDTH               6
1005
#define        CTID_COLUMN_BUFSIZE             20      /* max ctid_t + space + \0 */
1005 1006

  
1006 1007
static void
1007 1008
sprint_ctid(char **buf, scf_walkinfo_t *wip)
1008 1009
{
1009 1010
       int r;
1010 1011
       uint64_t c;
1011
       size_t newsize = (*buf ? strlen(*buf) : 0) + CTID_COLUMN_WIDTH + 2;
1012
       size_t newsize = (*buf ? strlen(*buf) : 0) + CTID_COLUMN_BUFSIZE;
1012 1013
       char *newbuf = safe_malloc(newsize);
1013 1014
       int restarter_spec;
    (1-1/1)