plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 93ee60c3691d2b4699e970d63363500cade26264
parent 9a054520852368c0a0d179bedfce60776587a645
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:
MCONTRIBUTORS | 2++
Msrc/cmd/samterm/mesg.c | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CONTRIBUTORS b/CONTRIBUTORS @@ -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> diff --git a/src/cmd/samterm/mesg.c b/src/cmd/samterm/mesg.c @@ -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");