Maciek,
you missed to add the terminating '\x00' character.
Maciek schrieb:
> n = _read(fd, data, size);
>
data[n] = 0;
> fprintf_P(stdout, PSTR("%s"), data);
>
Harald
PS. please send plain text to the list. See
http://www.expita.com/nomime.html