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

List:       kde-commits
Subject:    kdepim/certmanager/lib/backends/qgpgme
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2004-06-02 19:34:05
Message-ID: 20040602193405.14B9D126E2 () office ! kde ! org
[Download RAW message or body]

CVS commit by mutz: 

What's all the command line length juggling good for, if we don't update the actual count? :)


  M +3 -1      qgpgmerefreshkeysjob.cpp   1.4


--- kdepim/certmanager/lib/backends/qgpgme/qgpgmerefreshkeysjob.cpp  #1.3:1.4
@@ -100,5 +100,6 @@ GpgME::Error Kleo::QGpgMERefreshKeysJob:
   while ( !mPatternsToDo.empty() ) {
     const QCString pat = mPatternsToDo.front().utf8().stripWhiteSpace();
-    if ( pat.length() >= commandLineLength )
+    const unsigned int patLength = pat.length();
+    if ( patLength >= commandLineLength )
       break;
     mPatternsToDo.pop_front();
@@ -106,4 +107,5 @@ GpgME::Error Kleo::QGpgMERefreshKeysJob:
       continue;
     *mProcess << pat;
+    commandLineLength -= patLength + 1;
   }
 


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

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