URI: 
       tput NUL in right place! - 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 943cb39dd9c4d5ee16bc036e495bfc168a3cf745
   DIR parent 0df4c01ecab67c56ef701997189a281bc3cb303d
  HTML Author: rsc <devnull@localhost>
       Date:   Tue, 14 Feb 2006 19:45:01 +0000
       
       put NUL in right place!
       
       Diffstat:
         M src/lib9p/srv.c                     |       7 ++++---
       
       1 file changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/src/lib9p/srv.c b/src/lib9p/srv.c
       t@@ -64,7 +64,7 @@ getreq(Srv *s)
                        return nil;
                }
        
       -        buf = emalloc9p(n);
       +        buf = emalloc9p(n+1);        /* +1 for NUL in swrite */
                memmove(buf, s->rbuf, n);
                qunlock(&s->rlock);
        
       t@@ -535,9 +535,10 @@ swrite(Srv *srv, Req *r)
                        respond(r, e);
                        return;
                }
       -        if(srv->write)
       +        if(srv->write){
       +                r->ifcall.data[r->ifcall.count] = 0;        /* enough room - see getreq */
                        srv->write(r);
       -        else
       +        }else
                        respond(r, "no srv->write");
        }
        static void