From ba6dedbbbdf38e962b819a5ce085354a831c9204 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 26 Jan 2010 21:36:53 +0000 Subject: [PATCH] Actually use the copy made when no newline is found, from martynas@. --- status.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/status.c b/status.c index 535044ad..ee8f2390 100644 --- a/status.c +++ b/status.c @@ -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. */