From 93ee60c3691d2b4699e970d63363500cade26264 Mon Sep 17 00:00:00 2001 From: Eoghan Sherry Date: Thu, 18 Feb 2010 22:32:37 -0800 Subject: 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 --- src/cmd/samterm/mesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/samterm/mesg.c') diff --git a/src/cmd/samterm/mesg.c b/src/cmd/samterm/mesg.c index fb02373e..1e9cd561 100644 --- 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(""); if (!s1) panic("strdup"); -- cgit v1.2.3