secureswitools/swianalysistoolkit/source/chainvalidityandinstallfilestatustools/common/certificatechain.cpp
changeset 53 ae54820ef82c
parent 0 ba25891c3a9e
child 66 8b7f4e561641
--- a/secureswitools/swianalysistoolkit/source/chainvalidityandinstallfilestatustools/common/certificatechain.cpp	Wed Jun 23 18:20:02 2010 +0300
+++ b/secureswitools/swianalysistoolkit/source/chainvalidityandinstallfilestatustools/common/certificatechain.cpp	Tue Jul 06 14:23:31 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
@@ -450,7 +450,7 @@
 						capabilities.append("Unknown"+capability);
 						}
 				
-					iDevCapabilities += pow(2,capability);
+					iDevCapabilities += pow((double)2,capability);
 					}
 				capability++;
 				}
@@ -540,7 +540,7 @@
 				buf[j] = *(buffer++);
 				}
 
-			deviceId.append(buf);
+			deviceId.assign(buf,(KDeviceIdLength-2));
 			deviceId.append("\n");
 			}
 		}