Fix: Crash on saving a database (Bug #1955677)

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@281 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 16 years ago
parent 0ec14cb61c
commit c614192a48
  1. 4
      src/Kdb3Database.cpp

@ -1364,14 +1364,14 @@ bool Kdb3Database::save(){
for(int i=0; i < UnknownMetaStreams.size(); i++){
FileSize
+=164
+=165
+UnknownMetaStreams[i].Comment.toUtf8().length()+1
+UnknownMetaStreams[i].Binary.length();
}
for(int i=0; i < MetaStreams.size(); i++){
FileSize
+=164
+=165
+MetaStreams[i].Comment.toUtf8().length()+1
+MetaStreams[i].Binary.length();
}