Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
increase fixed-size buffers for mk
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnrnr committed Jan 24, 2014
1 parent 60631e1 commit 3936928
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion mk/lib/9/newprint.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ newprint - replacement print functions using stdio
#include <stdarg.h>
#include <assert.h>

#define SIZE 8192
#define SIZE 81920

int
sprint(char *buf, char *fmt, ...)
Expand Down
2 changes: 1 addition & 1 deletion mk/lib/9/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Revisions Copyright © 2001 Norman Ramsey. All rights reserved.
*/
#include "lib9.h"

#define SIZE 8192
#define SIZE 81920
extern int printcol;
static int errcount = { 0 };
static char errmsg[] = "print errors";
Expand Down
2 changes: 1 addition & 1 deletion mk/src/Inferno.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ dirtime(char *dir, char *path)
int i, fd, n;
void *t;
Dir db[32];
char buf[8192];
char buf[81920];

fd = open(dir, OREAD);
if(fd >= 0) {
Expand Down
4 changes: 2 additions & 2 deletions mk/src/Nt.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ dirtime(char *dir, char *path)
{
Dir d;
void *t;
char buf[8192];
char buf[81920];
HANDLE handle;
WIN32_FIND_DATA wfd;

Expand Down Expand Up @@ -201,7 +201,7 @@ childadd(HANDLE h, int pid)
static DWORD WINAPI
spinoff(HANDLE in, HANDLE out, char *args, char *cmd, Envy *e)
{
char args2[8192], path[MAX_PATH], *s, *eb;
char args2[81920], path[MAX_PATH], *s, *eb;
STARTUPINFO si;
PROCESS_INFORMATION pi;
Symtab *sym;
Expand Down
4 changes: 2 additions & 2 deletions mk/src/Posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exportenv(Envy *e)
{
int i;
char **p;
char buf[8192];
char buf[81920];

p = 0;
for(i = 0; e->name; e++, i++) {
Expand All @@ -67,7 +67,7 @@ dirtime(char *dir, char *path)
struct dirent *dp;
Dir d;
void *t;
char buf[8192];
char buf[81920];

dirp = opendir(dir);
if(dirp) {
Expand Down

0 comments on commit 3936928

Please sign in to comment.