Skip to content

Commit 9caa363

Browse files
author
Iain Bancarz
committed
Bigger sample name buffer
1 parent c0e4d1a commit 9caa363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simtools.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ void commandIlluminus(string infile, string outfile, string manfile, int start_p
367367
(uint16_t *) calloc(sim->sampleIntensityTotal, sizeof(uint16_t));
368368
float *intensity_float =
369369
(float *) calloc(sim->sampleIntensityTotal, sizeof(float));
370-
sampleName = new char[sim->sampleNameSize];
370+
sampleName = new char[sim->sampleNameSize+1];
371371

372372
// We need a manifest file to sort the SNPs
373373
loadManifest(manifest, manfile);

0 commit comments

Comments
 (0)