aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcConfig.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-04 00:37:25 -0700
committerChris Robinson <[email protected]>2014-05-04 00:37:25 -0700
commit2a7f3c015e9c8ee13602b249b175b7e0adabb5dc (patch)
treeb242aabc45873eb31149bfcbe47aeb7322918cde /Alc/alcConfig.c
parentdb90985f6a0db8cbd97c2c1ece259eeba15f983b (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/alcConfig.c')
-rw-r--r--Alc/alcConfig.c2
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)