commit - 0f815464fcf8839a5053be8d9aaf13326dde24b3
commit + 715d6f8e14e8bc20f21209ca107bef3300d28e8c
blob - e86509584f8e05b691691c33a10e17b7882f4e55
blob + 803489331e24e88d5bdd667e54a49772ac375d18
--- src/cmd/sam/shell.c
+++ src/cmd/sam/shell.c
void
checkerrs(void)
{
- char buf[256];
+ char buf[4096];
int f, n, nl;
char *p;
long l;
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;