Skip to content

Commit

Permalink
fix buffer reallocation bug affecting Map params
Browse files Browse the repository at this point in the history
  • Loading branch information
wg committed Apr 20, 2013
1 parent 92b47ce commit bba3cd8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public CommandArgs<K, V> addValues(V... values) {

public CommandArgs<K, V> add(Map<K, V> map) {
if (map.size() > 2) {
realloc(16 * map.size());
realloc(buffer.capacity() + 16 * map.size());
}

for (Map.Entry<K, V> entry : map.entrySet()) {
Expand Down

0 comments on commit bba3cd8

Please # to comment.