On 6/13/07, M. Dietrich <[EMAIL PROTECTED]> wrote:
> i encounter a strange effect with GetStringBreak. it cuts the string
> nicely at blank-delimiters to fit the width but words that are too
> long are not split. instead ret_next_line is the same as before and
> ret_str_length is a smaller value than expected (more chars could be
> put on that line - blanks ignored).
>
> is this correct behavior? or a bug? how should a program react here?

This sounds like a bug to me.  Looking at the code, there's no check
to see if the word is the only word on a line

The documentation for this API doesn't describe how it handles a word
that's too long, so a patch for this would update the behavior and
also document that when there is only one word, the code will truncate
the word and return a pointer into the middle of the word.

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to