Actually use the copy made when no newline is found, from martynas@.

This commit is contained in:
Nicholas Marriott 2010-01-26 21:36:53 +00:00
parent f26312ffbf
commit ba6dedbbbd

View File

@ -550,10 +550,11 @@ status_job_callback(struct job *job)
xfree(job->data); xfree(job->data);
else else
server_redraw_client(job->client); server_redraw_client(job->client);
job->data = xstrdup(line);
if (buf != NULL) if (line == NULL)
xfree(buf); job->data = buf;
else
job->data = xstrdup(line);
} }
/* Calculate winlink status line entry width. */ /* Calculate winlink status line entry width. */