diff options
Diffstat (limited to 'libsandbox')
-rw-r--r-- | libsandbox/trace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsandbox/trace.c b/libsandbox/trace.c index dfbab18..1d40392 100644 --- a/libsandbox/trace.c +++ b/libsandbox/trace.c @@ -119,11 +119,12 @@ static char *do_peekstr(unsigned long lptr) ret = xrealloc(ret, len); liov.iov_base = ret + len - l; } +#else + len = 1024; + ret = xmalloc(len); #endif l = 0; - len = 1024; - ret = xmalloc(len); while (1) { a = lptr & (sizeof(long) - 1); lptr -= a; |