Fixed realloc() call.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29391 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2010-01-24 16:27:16 +00:00
parent 6b1daf89b5
commit 11b2394a08

View file

@ -148,7 +148,7 @@ Class GSStackTraceClass;
if (nil == (self = [super init])) { return nil; }
addresses = calloc(sizeof(void*),1024);
count = backtrace(addresses, 1024);
addresses = realloc(addresses, count);
addresses = realloc(addresses, sizeof(void*)*count);
return self;
}