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