Fixed a bug in addMsg. The stream was told to seek to the end -2, but if the file was size 0 (just created), this would fail, which would screw up the ferror check later in the code.
The seek to the end -2 shouldn't be done if the file is less than 2 svn path=/trunk/kdenetwork/kmail/; revision=55665wilder-work
parent
bc11b910f8
commit
1b1ae87e21
1 changed files with 22 additions and 15 deletions
Loading…
Reference in new issue