The +1 is there to skip the ','. With \r\n, the +1 skips the \r but that is ok. With only \n, the +1 skips it and all hell breaks loose.
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>