mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 17:24:22 +01:00
Sync OpenBSD patchset 620:
Actually use the copy made when no newline is found, from martynas@.
This commit is contained in:
parent
1a6cb5fd54
commit
0e320881d5
9
status.c
9
status.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: status.c,v 1.141 2009-12-16 01:10:36 tcunha Exp $ */
|
/* $Id: status.c,v 1.142 2010-01-28 22:44:16 tcunha Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -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. */
|
||||||
|
Loading…
Reference in New Issue
Block a user