Skip to content

Commit 49b37d5

Browse files
committed
* minor bounds fix
1 parent 35b5548 commit 49b37d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/helpers/RegionMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ int RegionMap::getTransportKeysFor(const RegionEntry& src, TransportKey dest[],
176176
_store->getAutoKeyFor(src.id, src.name, dest[0]);
177177
num = 1;
178178
} else { // new: implicit auto hashtag region
179-
char tmp[sizeof(src.name)];
179+
char tmp[sizeof(src.name)+1];
180180
tmp[0] = '#';
181181
strcpy(&tmp[1], src.name);
182182
_store->getAutoKeyFor(src.id, tmp, dest[0]);

0 commit comments

Comments
 (0)