diff options
-rw-r--r-- | progressbar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/progressbar.c b/progressbar.c index 38e1da9..43d1e6b 100644 --- a/progressbar.c +++ b/progressbar.c @@ -390,9 +390,9 @@ struct filepath { static void printf_cmd_info(size_t index, struct filepath const * const fp) { if (index) { - printf("[%zu]['/proc/%s/fd/%s'] '%s'\n", index, fp->pid, fp->fd, fp->cmdline); + printf("[%zu]['/proc/%s/fd/%s']['%s']\n", index, fp->pid, fp->fd, fp->cmdline); } else { - printf("['/proc/%s/fd/%s'] '%s'\n", fp->pid, fp->fd, fp->cmdline); + printf("['/proc/%s/fd/%s']['%s']\n", fp->pid, fp->fd, fp->cmdline); } } @@ -553,8 +553,6 @@ int main(int argc, char **argv) } puts(""); - close(finfo.proc_fdinfo_fd); - while (paths) { struct filepath * cur = paths; paths = paths->next; |