diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2010-01-26 21:36:53 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2010-01-26 21:36:53 +0000 |
commit | ba6dedbbbdf38e962b819a5ce085354a831c9204 (patch) | |
tree | 26042ba66a150d3241d50e56ac4dbc4f58aff0cf /status.c | |
parent | f26312ffbf627af3aa9d4a85dd69148b63d36766 (diff) |
Actually use the copy made when no newline is found, from martynas@.
Diffstat (limited to 'status.c')
-rw-r--r-- | status.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -550,10 +550,11 @@ status_job_callback(struct job *job) xfree(job->data); else server_redraw_client(job->client); - job->data = xstrdup(line); - if (buf != NULL) - xfree(buf); + if (line == NULL) + job->data = buf; + else + job->data = xstrdup(line); } /* Calculate winlink status line entry width. */ |