diff options
author | Chris Robinson <[email protected]> | 2014-05-04 00:37:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-04 00:37:25 -0700 |
commit | 2a7f3c015e9c8ee13602b249b175b7e0adabb5dc (patch) | |
tree | b242aabc45873eb31149bfcbe47aeb7322918cde /Alc | |
parent | db90985f6a0db8cbd97c2c1ece259eeba15f983b (diff) |
Don't use the next power of two when duplicating config values
Speed isn't terribly important here, and reallocs should be extremely rare.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alcConfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index 1cdd65b7..a058029e 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -157,7 +157,7 @@ static char *expdup(const char *str) void *temp = NULL; size_t newmax; - newmax = NextPowerOf2(len+addstrlen+1); + newmax = len+addstrlen+1; if(newmax > maxlen) temp = realloc(output, newmax); if(!temp) |