aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/samterm
diff options
context:
space:
mode:
authorEoghan Sherry <ejsherry@gmail.com>2010-02-18 22:32:37 -0800
committerRuss Cox <rsc@swtch.com>2010-02-18 22:32:37 -0800
commit93ee60c3691d2b4699e970d63363500cade26264 (patch)
treea719030b380d111c22282d144489168fb3bc1a26 /src/cmd/samterm
parent9a054520852368c0a0d179bedfce60776587a645 (diff)
downloadplan9port-93ee60c3691d2b4699e970d63363500cade26264.tar.gz
plan9port-93ee60c3691d2b4699e970d63363500cade26264.tar.bz2
plan9port-93ee60c3691d2b4699e970d63363500cade26264.zip
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 (limited to 'src/cmd/samterm')
-rw-r--r--src/cmd/samterm/mesg.c2
1 files changed, 1 insertions, 1 deletions
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("<snarf too long>");
if (!s1)
panic("strdup");