[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r5316 - in trunk/softHSM: . src/lib

Rickard Bellgrim rickard at opendnssec.org
Tue Jul 12 08:30:26 CEST 2011


Author: rb
Date: 2011-07-12 08:30:25 +0200 (Tue, 12 Jul 2011)
New Revision: 5316

Modified:
   trunk/softHSM/NEWS
   trunk/softHSM/src/lib/file.cpp
Log:
Windows use colon in its paths. Do not search for this token in the second part of the line. All we want is the rest of the line. So just say null.


Modified: trunk/softHSM/NEWS
===================================================================
--- trunk/softHSM/NEWS	2011-07-11 20:45:23 UTC (rev 5315)
+++ trunk/softHSM/NEWS	2011-07-12 06:30:25 UTC (rev 5316)
@@ -32,6 +32,7 @@
 * Windows: Generate the DLL file.
 * Windows: The softhsm tool will use the DLL file by default.
 * Windows: Log to EventLog.
+* Windows: Fix parsing of configuration file.
 
 
 SoftHSM 1.2.1 - 2011-05-03 

Modified: trunk/softHSM/src/lib/file.cpp
===================================================================
--- trunk/softHSM/src/lib/file.cpp	2011-07-11 20:45:23 UTC (rev 5315)
+++ trunk/softHSM/src/lib/file.cpp	2011-07-12 06:30:25 UTC (rev 5316)
@@ -90,7 +90,7 @@
     }
 
     // Get the second part of the line
-    char *dbPath = strtok(NULL, ":");
+    char *dbPath = strtok(NULL, "\0");
     if(dbPath == NULL) {
       continue;
     }




More information about the Opendnssec-commits mailing list