summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2014-12-21 15:44:09 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2014-12-21 15:44:09 +0100
commit43a1a5f31ecc130990989a6c164d713629b4d5ed (patch)
treecac60830ef2d2f77d64127cc4eebfbe848371f2b
parente8d7e3401051dd9d8e2992ae0ed0d5149a6bdcc5 (diff)
downloadbiruda-43a1a5f31ecc130990989a6c164d713629b4d5ed.tar.gz
biruda-43a1a5f31ecc130990989a6c164d713629b4d5ed.tar.bz2
increased some buffers and line buffers for worker output
-rw-r--r--src/master.c4
-rw-r--r--src/webserver.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/master.c b/src/master.c
index ad266e2..b14acbe 100644
--- a/src/master.c
+++ b/src/master.c
@@ -469,7 +469,7 @@ void master_output_outstanding_messages( const char *name, char *s, size_t len )
}
fseek( wed->spool_file, wed->read_pos, SEEK_SET );
- char line[100];
+ char line[1024];
char *cur = s;
char *end = s + len;
while( wed->read_pos < end_pos ) {
@@ -498,7 +498,7 @@ void master_output_tail( const char *name, char *s, size_t len )
char *last_lines[25];
memset( last_lines, 0, sizeof( last_lines ) );
int last_lines_pos = 0;
- char line[100];
+ char line[1024];
while( pos < end_pos ) {
fgets( line, sizeof( line ), wed->spool_file );
if( last_lines[last_lines_pos] != NULL ) {
diff --git a/src/webserver.c b/src/webserver.c
index 9b62f0e..6be2a46 100644
--- a/src/webserver.c
+++ b/src/webserver.c
@@ -18,7 +18,7 @@ static int handle_request( void *cls, struct MHD_Connection *connection,
fprintf( stderr, "%s http request: %s\n", method, url );
if( strcmp( method, "GET" ) == 0 ) {
- char biruda_msg[2048];
+ char biruda_msg[8192];
biruda_msg[0] = '\0';
if( strcmp( url, "/status" ) == 0 ) {
for( int pos = 0; pos < MAX_COORDINATORS; pos++ ) {