last bits

This commit is contained in:
albert
2002-12-21 14:13:33 +00:00
parent f2a0a095ba
commit 70599c3d3f
3 changed files with 3 additions and 25 deletions

View File

@ -273,6 +273,7 @@ output_numlist (const union el *restrict list)
static void
output_strlist (const union el *restrict list)
{
// FIXME: escape codes
int i;
for (i = 1; i < list[0].num; i++)
printf ("%s%s", list[i].str, opt_delim);
@ -447,7 +448,7 @@ select_procs (void)
matches = 0;
}
if (opt_long) {
char buff[4096];
char buff[5096]; // FIXME
sprintf (buff, "%d %s", task.pid, cmd);
list[++matches].str = strdup (buff);
} else {