Use ScanLinesAndTruncateWhenLongerThanBuffer instead of bufio.ScanLines

This commit is contained in:
Stefan Haller 2024-04-27 17:19:08 +02:00
parent e0a2d97f0f
commit f69eb6dc48
3 changed files with 3 additions and 3 deletions

View file

@ -161,7 +161,7 @@ func (self *cmdObjRunner) RunAndProcessLines(cmdObj ICmdObj, onLine func(line st
}
scanner := bufio.NewScanner(stdoutPipe)
scanner.Split(bufio.ScanLines)
scanner.Split(utils.ScanLinesAndTruncateWhenLongerThanBuffer(bufio.MaxScanTokenSize))
if err := cmd.Start(); err != nil {
return err
}