@@ -2257,7 +2257,7 @@ int freadMain(freadMainArgs _args) {
22572257 int max_col = 0 ;
22582258 char * typeBumpMsg = NULL ; size_t typeBumpMsgSize = 0 ;
22592259 int typeCounts [NUMTYPE ]; // used for verbose output; needs populating after first read and before reread (if any) -- see later comment
2260- char internalErr [1001 ]= "" ; // must be compile time size: the message is generated and we can't free before STOP
2260+ char internalErr [256 ]= "" ; // must be compile time size: the message is generated and we can't free before STOP
22612261 int64_t DTi = 0 ; // the current row number in DT that we are writing to
22622262 const char * headPos = pos ; // the jump start corresponding to DTi
22632263 int nSwept = 0 ; // count the number of dirty jumps that were swept
@@ -2313,7 +2313,7 @@ int freadMain(freadMainArgs _args) {
23132313 nth = omp_get_num_threads ();
23142314 if (me != 0 ) {
23152315 // # nocov start
2316- snprintf (internalErr , sizeof (internalErr ) - 1 , "Master thread is not thread 0 but thread %d.\n" , me ); // # notranslate
2316+ snprintf (internalErr , sizeof (internalErr ), "Master thread is not thread 0 but thread %d.\n" , me ); // # notranslate
23172317 stopTeam = true;
23182318 // # nocov end
23192319 }
@@ -2582,7 +2582,7 @@ int freadMain(freadMainArgs _args) {
25822582 }
25832583 else if (headPos != thisJumpStart && nrowLimit > 0 ) { // do not care for dirty jumps since we do not read data and only want to know types
25842584 // # nocov start
2585- snprintf (internalErr , sizeof (internalErr ) - 1 , "invalid head position. jump=%d, headPos=%p, thisJumpStart=%p, sof=%p" , jump , headPos , thisJumpStart , sof ); // # notranslate
2585+ snprintf (internalErr , sizeof (internalErr ), "invalid head position. jump=%d, headPos=%p, thisJumpStart=%p, sof=%p" , jump , headPos , thisJumpStart , sof ); // # notranslate
25862586 stopTeam = true;
25872587 // # nocov end
25882588 }
0 commit comments