Hello!

That's definitly a bug. We tested this code with man pages, so
did not notice it earlier :-)

Thank's for reporting this!

Regards!


> Thomas Hepper wrote:
> 
> Hi,
> i still have the problem with not get all data from an pdf file. So i
> started
> to dig a little bit in the source and now have a question.
> 
> There is a function parse which get a parameter a buffer, the len of
> the buffer
> etc (parse.c:92)
> 
> In thi function now the buffer is written to an fd, but wy is there
> the function
> strlen used to get the size of the buffer and not the passed parameter
> bufflen.
> 
>         /* Send string to be parsed */
>         write (wr[1], buf, strlen(buf));
>         close(wr[1]);
> The strlen will fail if there is an \0 in the data, and that is what
> happens in my case.
> Changing it to
> 
>         /* Send string to be parsed */
>         write (wr[1], buf, buflen);
>         close(wr[1]);
> 
> solves my problem, so is it a bug ?




-- 
Alexander Barkov
IZHCOM, Izhevsk
email:    [EMAIL PROTECTED]      | http://www.izhcom.ru
Phone:    +7 (3412) 51-23-76 | Fax: +7 (3412) 78-70-10
ICQ:      7748759
______________
If you want to unsubscribe send "unsubscribe udmsearch"
to [EMAIL PROTECTED]

Reply via email to