tsave old q0, q1 - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e074ed0d7e7c45a087f745709818b026dcbe2ee0
DIR parent 7bd73c7fd4a96e5e22ba48397de5ccde0fff09ea
HTML Author: rsc <devnull@localhost>
Date: Sun, 25 Jun 2006 23:52:41 +0000
save old q0, q1
Diffstat:
M src/libacme/acme.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/libacme/acme.c b/src/libacme/acme.c
t@@ -411,11 +411,15 @@ winreadevent(Win *w, Event *e)
}
efd = wfid(w, "event");
gete(w, efd, e);
+ e->oq0 = e->q0;
+ e->oq1 = e->q1;
/* expansion */
if(e->flag&2){
gete(w, efd, &w->e2);
if(e->q0==e->q1){
+ w->e2.oq0 = e->q0;
+ w->e2.oq1 = e->q1;
w->e2.flag = e->flag;
*e = w->e2;
}
t@@ -521,7 +525,7 @@ pipetowin(Win *w, char *name, int errto, char *cmd, ...)
char*
sysrun(char *fmt, ...)
{
- static char buf[1024];
+ static char buf[1025];
char *cmd;
va_list arg;
int n, fd[3], p[2], tot;