Fix small bug in getline of serial port clsdrv