URI:
       tThis should resolve the crash indicated in issue 44: http://code.swtch.com/plan9port/issue/44/sam-crash - 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 93ee60c3691d2b4699e970d63363500cade26264
   DIR parent 9a054520852368c0a0d179bedfce60776587a645
  HTML Author: Eoghan Sherry <ejsherry@gmail.com>
       Date:   Thu, 18 Feb 2010 22:32:37 -0800
       
       This should resolve the crash indicated in issue 44:
       http://code.swtch.com/plan9port/issue/44/sam-crash
       
       R=rsc
       CC=codebot
       http://codereview.appspot.com/207094
       
       Diffstat:
         M CONTRIBUTORS                        |       2 ++
         M src/cmd/samterm/mesg.c              |       2 +-
       
       2 files changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/CONTRIBUTORS b/CONTRIBUTORS
       t@@ -5,8 +5,10 @@
        
        Albert Lee <trisk@acm.jhu.edu>
        André Günther <Andre.G@gmx.de>
       +Anthony Sorace <a@9srv.net>
        Benjamin Huntsman <BHuntsman@mail2.cu-portland.edu>
        Enrique Soriano <enrique.soriano@gmail.com>
       +Eoghan Sherry <ejsherry@gmail.com>
        Fazlul Shahriar <fshahriar@gmail.com>
        J.R. Mauro <jrm8005@gmail.com>
        Jeff Sickel <jas@corpus-callosum.com>
   DIR diff --git a/src/cmd/samterm/mesg.c b/src/cmd/samterm/mesg.c
       t@@ -653,7 +653,7 @@ hsetsnarf(int nc)
                if(n >= 0){
                        if(!s1)
                                n = 0;
       -                if(n > 65535){
       +                if(n > SNARFSIZE){
                                s1 = strdup("<snarf too long>");
                                if (!s1)
                                        panic("strdup");