summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-01 00:34:18 -0700
committerKeith Packard <keithp@keithp.com>2013-11-01 00:34:18 -0700
commit977e2644b1d9e13b44debcb9a372bbc832ee32a3 (patch)
tree9bff1a4713fc814585ebb60b3ff67a8624484967 /os
parent66c5ee0ff4690e630a69656331fd9d545c99c26c (diff)
parentf36f5a65f639b6524191d888d5bf89e73027156c (diff)
Merge remote-tracking branch 'whot/for-keith'
Diffstat (limited to 'os')
-rw-r--r--os/backtrace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/os/backtrace.c b/os/backtrace.c
index 426f9b15b..3d1195b86 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -114,14 +114,15 @@ xorg_backtrace(void)
void
xorg_backtrace(void)
{
- void *array[64];
+ const int BT_SIZE = 64;
+ void *array[BT_SIZE];
const char *mod;
int size, i;
Dl_info info;
ErrorFSigSafe("\n");
ErrorFSigSafe("Backtrace:\n");
- size = backtrace(array, 64);
+ size = backtrace(array, BT_SIZE);
for (i = 0; i < size; i++) {
int rc = dladdr(array[i], &info);