Skip to content

Commit

Permalink
Increasing buffer sizes from 1024 to 8192.
Browse files Browse the repository at this point in the history
Datasets with many inputs could span more than 1024 bytes per row in text mode.
  • Loading branch information
royalstream committed Jan 2, 2020
1 parent 86e50ae commit 3fc2823
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ DLL_EXPORT struct chromosome* initialiseChromosomeFromFile(char const *file) {

char *line, *record;
char funcName[FUNCTIONNAMELENGTH];
char buffer[1024];
char buffer[8192];

int numInputs, numNodes, numOutputs, arity;

Expand Down Expand Up @@ -2328,7 +2328,7 @@ DLL_EXPORT struct dataSet *initialiseDataSetFromFile(char const *file) {
struct dataSet *data;
FILE *fp;
char *line, *record;
char buffer[1024];
char buffer[8192];
int lineNum = -1;
int col;

Expand Down

0 comments on commit 3fc2823

Please sign in to comment.