Lines 979-985
Slot::makeLabelString(char *label, int m
Link Here
|
979 |
// |
979 |
// |
980 |
#define COOLKEY "CoolKey" |
980 |
#define COOLKEY "CoolKey" |
981 |
#define POSSESSION " for " |
981 |
#define POSSESSION " for " |
982 |
if (!personName || personName == "") { |
982 |
if (!personName || personName[0] == '\0' ) { |
983 |
const int coolKeySize = sizeof(COOLKEY) ; |
983 |
const int coolKeySize = sizeof(COOLKEY) ; |
984 |
memcpy(label, COOLKEY, coolKeySize-1); |
984 |
memcpy(label, COOLKEY, coolKeySize-1); |
985 |
makeSerialString(&label[coolKeySize], maxSize-coolKeySize, cuid); |
985 |
makeSerialString(&label[coolKeySize], maxSize-coolKeySize, cuid); |
Lines 1528-1534
SlotMemSegment::SlotMemSegment(const cha
Link Here
|
1528 |
} |
1528 |
} |
1529 |
sprintf(segName,SEGMENT_PREFIX"%s",readerName); |
1529 |
sprintf(segName,SEGMENT_PREFIX"%s",readerName); |
1530 |
segment = SHMem::initSegment(segName, MAX_OBJECT_STORE_SIZE, needInit); |
1530 |
segment = SHMem::initSegment(segName, MAX_OBJECT_STORE_SIZE, needInit); |
1531 |
delete segName; |
1531 |
delete [] segName; |
1532 |
if (!segment) { |
1532 |
if (!segment) { |
1533 |
// just run without shared memory |
1533 |
// just run without shared memory |
1534 |
return; |
1534 |
return; |