commit 93ee60c3691d2b4699e970d63363500cade26264 from: Eoghan Sherry via: Russ Cox date: Fri Feb 19 06:32:37 2010 UTC 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 commit - 9a054520852368c0a0d179bedfce60776587a645 commit + 93ee60c3691d2b4699e970d63363500cade26264 blob - 468df51b3c51ad48d62e9aed40bc76c0b0330707 blob + 4c011d923209d217a1c9b270da0dd07591af08f5 --- CONTRIBUTORS +++ CONTRIBUTORS @@ -5,8 +5,10 @@ Albert Lee André Günther +Anthony Sorace Benjamin Huntsman Enrique Soriano +Eoghan Sherry Fazlul Shahriar J.R. Mauro Jeff Sickel blob - fb02373eb445f8b6553d6886b838b228d72e61ed blob + 1e9cd5612be1aef9a0dbe13241cf6ddf9e6452b3 --- src/cmd/samterm/mesg.c +++ 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");