Blame SOURCES/coolkey-simple-bugs.patch

d98f6e
diff -up ./configure.in.coolkey-simple-bugs ./configure.in
d98f6e
--- ./configure.in.coolkey-simple-bugs	2009-09-16 11:21:55.621493844 -0700
d98f6e
+++ ./configure.in	2009-09-16 11:22:23.354492383 -0700
d98f6e
@@ -124,9 +124,9 @@ then
d98f6e
 if test $WINDOWS -ne 1; then
d98f6e
   PKG_CHECK_MODULES(NSS, nss, true, [ AC_MSG_ERROR(could not find NSS Crypto libraries) ])
d98f6e
 fi
d98f6e
-  enable_pk11install = "yes"
d98f6e
+  enable_pk11install="yes"
d98f6e
 else
d98f6e
-  enable_pk11install = "no"
d98f6e
+  enable_pk11install="no"
d98f6e
   AC_MSG_WARN([skipping pk11install])
d98f6e
 fi
d98f6e
 
d98f6e
diff -up ./Makefile.am.coolkey-simple-bugs ./Makefile.am
d98f6e
--- ./Makefile.am.coolkey-simple-bugs	2009-09-16 11:23:18.715515063 -0700
d98f6e
+++ ./Makefile.am	2009-09-16 13:15:29.570492412 -0700
d98f6e
@@ -25,7 +25,6 @@ if BUILD_PK11INSTALL
d98f6e
 SUBDIRS += src/install
d98f6e
 endif
d98f6e
 
d98f6e
-ACLOCAL_AMFLAGS = -I m4
d98f6e
 
d98f6e
 EXTRA_DIST = cookey.spec LICENSE
d98f6e
 
d98f6e
diff -up ./src/coolkey/object.cpp.coolkey-simple-bugs ./src/coolkey/object.cpp
d98f6e
--- ./src/coolkey/object.cpp.coolkey-simple-bugs	2009-09-16 10:36:29.300516245 -0700
d98f6e
+++ ./src/coolkey/object.cpp	2009-09-16 10:37:17.747492199 -0700
d98f6e
@@ -397,7 +397,7 @@ PKCS11Object::getLabel() 
d98f6e
 {
d98f6e
     // clean up old one
d98f6e
     if (label) {
d98f6e
-	delete label;
d98f6e
+	delete [] label;
d98f6e
 	label = NULL;
d98f6e
     }
d98f6e
     // find matching attribute
d98f6e
diff -up ./src/coolkey/object.h.coolkey-simple-bugs ./src/coolkey/object.h
d98f6e
--- ./src/coolkey/object.h.coolkey-simple-bugs	2009-09-16 16:05:27.233488140 -0700
d98f6e
+++ ./src/coolkey/object.h	2009-09-16 16:05:54.161492421 -0700
d98f6e
@@ -82,7 +82,7 @@ class PKCS11Object {
d98f6e
     PKCS11Object(unsigned long muscleObjID, CK_OBJECT_HANDLE handle);
d98f6e
     PKCS11Object(unsigned long muscleObjID, const CKYBuffer *data,
d98f6e
         CK_OBJECT_HANDLE handle);
d98f6e
-    ~PKCS11Object() { delete label; delete name; CKYBuffer_FreeData(&pubKey); }
d98f6e
+    ~PKCS11Object() { delete [] label; delete [] name; CKYBuffer_FreeData(&pubKey); }
d98f6e
 
d98f6e
     PKCS11Object(const PKCS11Object& cpy) :
d98f6e
         attributes(cpy.attributes), muscleObjID(cpy.muscleObjID),
d98f6e
diff -up ./src/coolkey/slot.cpp.coolkey-simple-bugs ./src/coolkey/slot.cpp
d98f6e
--- ./src/coolkey/slot.cpp.coolkey-simple-bugs	2009-09-16 10:28:15.412492201 -0700
d98f6e
+++ ./src/coolkey/slot.cpp	2009-09-16 10:57:27.692492487 -0700
d98f6e
@@ -979,7 +979,7 @@ Slot::makeLabelString(char *label, int m
d98f6e
 //
d98f6e
 #define COOLKEY "CoolKey"
d98f6e
 #define POSSESSION " for "
d98f6e
-    if (!personName || personName == "") {
d98f6e
+    if (!personName || personName[0] == '\0' ) {
d98f6e
 	const int coolKeySize = sizeof(COOLKEY) ;
d98f6e
 	memcpy(label, COOLKEY, coolKeySize-1);
d98f6e
 	makeSerialString(&label[coolKeySize], maxSize-coolKeySize, cuid);
d98f6e
@@ -1528,7 +1528,7 @@ SlotMemSegment::SlotMemSegment(const cha
d98f6e
     }
d98f6e
     sprintf(segName,SEGMENT_PREFIX"%s",readerName); 
d98f6e
     segment = SHMem::initSegment(segName, MAX_OBJECT_STORE_SIZE, needInit);
d98f6e
-    delete segName;
d98f6e
+    delete [] segName;
d98f6e
     if (!segment) {
d98f6e
 	// just run without shared memory
d98f6e
 	return;