[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/libs/store
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2009-12-09 20:07:39
Message-ID: 1260389259.653754.21521.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1060743 by rempt:

warn if we do not write enough bytes in release mode

 M  +4 -0      KoStore.cpp  


--- trunk/koffice/libs/store/KoStore.cpp #1060742:1060743
@@ -433,6 +433,10 @@
         data.resize(8*1024);
     }
     Q_ASSERT(total == size);
+    if (total != size) {
+        kWarning(s_area) << "Did not write enough bytes. Expected: " << size << ", wrote" << total;
+        return false;
+    }
 
     close();
     file.close();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic