* minor bounds fix
This commit is contained in:
@@ -176,7 +176,7 @@ int RegionMap::getTransportKeysFor(const RegionEntry& src, TransportKey dest[],
|
|||||||
_store->getAutoKeyFor(src.id, src.name, dest[0]);
|
_store->getAutoKeyFor(src.id, src.name, dest[0]);
|
||||||
num = 1;
|
num = 1;
|
||||||
} else { // new: implicit auto hashtag region
|
} else { // new: implicit auto hashtag region
|
||||||
char tmp[sizeof(src.name)];
|
char tmp[sizeof(src.name)+1];
|
||||||
tmp[0] = '#';
|
tmp[0] = '#';
|
||||||
strcpy(&tmp[1], src.name);
|
strcpy(&tmp[1], src.name);
|
||||||
_store->getAutoKeyFor(src.id, tmp, dest[0]);
|
_store->getAutoKeyFor(src.id, tmp, dest[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user