fix, PEBKAC, make sure all tabs exist in line before copying them

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix to fix, don't use rawmemchr() to determine the number of tabs

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix to fix to fix, clarify tab counting code

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/gandalfd' into next

* core/gandalfd:
  fix to fix to fix, clarify tab counting code
  fix to fix, don't use rawmemchr() to determine the number of tabs
  fix, PEBKAC, make sure all tabs exist in line before copying them