>>>>> "t" == ts  <decoux / moulon.inra.fr> writes:

t>  then (buffer - marker) > bufsize and this give rest < 0
         ^^^^^^^^^^^^^^^^^

 it's (marker - buffer), sorry

Guy Decoux