aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-04-15 19:15:17 -0700
committerRuss Cox <rsc@swtch.com>2008-04-15 19:15:17 -0700
commit715d6f8e14e8bc20f21209ca107bef3300d28e8c (patch)
tree76d43fe9b6c4307440bcce659ffda778e5ca5cda
parent0f815464fcf8839a5053be8d9aaf13326dde24b3 (diff)
downloadplan9port-715d6f8e14e8bc20f21209ca107bef3300d28e8c.tar.gz
plan9port-715d6f8e14e8bc20f21209ca107bef3300d28e8c.tar.bz2
plan9port-715d6f8e14e8bc20f21209ca107bef3300d28e8c.zip
sam: allow more output from ! command (Rob Pike)
-rw-r--r--src/cmd/sam/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/sam/shell.c b/src/cmd/sam/shell.c
index e8650958..80348933 100644
--- a/src/cmd/sam/shell.c
+++ b/src/cmd/sam/shell.c
@@ -142,7 +142,7 @@ plan9(File *f, int type, String *s, int nest)
void
checkerrs(void)
{
- char buf[256];
+ char buf[4096];
int f, n, nl;
char *p;
long l;
@@ -150,7 +150,7 @@ checkerrs(void)
if(statfile(errfile, 0, 0, 0, &l, 0) > 0 && l != 0){
if((f=open((char *)errfile, 0)) != -1){
if((n=read(f, buf, sizeof buf-1)) > 0){
- for(nl=0,p=buf; nl<3 && p<&buf[n]; p++)
+ for(nl=0,p=buf; nl<25 && p<&buf[n]; p++)
if(*p=='\n')
nl++;
*p = 0;