~kvik/lu9-lua

2978db7bc91bfc4a2b402d408fa59499e3ee35be — kvik 1 year, 2 months ago 69bb519
shim: correct the size of status message buffer
1 files changed, 2 insertions(+), 2 deletions(-)

M shim.c
M shim.c => shim.c +2 -2
@@ 45,7 45,7 @@ struct a_fork {
	char done;
	int	fd;
	int	pid;
	char status[255+1];
	char status[ERRMAX];
};
static struct a_fork the_fork[MAXFORKS];



@@ 111,7 111,7 @@ pclose(FILE *file)
			for(f = 0; f < MAXFORKS; f++){
				if(r == the_fork[f].pid){
					the_fork[f].done = 1;
					strncpy(the_fork[f].status, status->msg, sizeof(the_fork[f].status));
					strncpy(the_fork[f].status, status->msg, ERRMAX);
					break;
				}
			}