=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/format.c,v retrieving revision 1.150 retrieving revision 1.151 diff -c -r1.150 -r1.151 *** src/usr.bin/tmux/format.c 2017/11/02 18:52:05 1.150 --- src/usr.bin/tmux/format.c 2018/01/18 14:28:11 1.151 *************** *** 1,4 **** ! /* $OpenBSD: format.c,v 1.150 2017/11/02 18:52:05 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: format.c,v 1.151 2018/01/18 14:28:11 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott *************** *** 191,200 **** format_job_update(struct job *job) { struct format_job *fj = job->data; ! char *line; time_t t; ! if ((line = evbuffer_readline(job->event->input)) == NULL) return; fj->updated = 1; --- 191,205 ---- format_job_update(struct job *job) { struct format_job *fj = job->data; ! struct evbuffer *evb = job->event->input; ! char *line = NULL, *next; time_t t; ! while ((next = evbuffer_readline(evb)) != NULL) { ! free(line); ! line = next; ! } ! if (line == NULL) return; fj->updated = 1;