Lars Gullik Bjønnes wrote:

> Ok, so this was a bug in lyxstring... fixed now... (hopefully)
> but there is also most likely a problem in getExtFromContents ... it
> uses
> 
> string str;
> ifs >> str;
> 
> this only reads from ifs until ' ' or '\n' or eof is reached, I guess
> it would be more correct to read a whole line and do the checks on
> that.


I do not think so. the worst case maybe for example:

BM <and_now_tons_of_bytes_without_a_newline>

the first token does it all: filetype=bmp.

Herbert


-- 
http://www.lyx.org/help/

Reply via email to