aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.c (unfollow)
Commit message (Collapse)AuthorLines
2021-02-09debug: make use of log_msg() in fatal_error() and bug() functionsCraig Barnes-2/+2
Instead of writing directly to stderr and/or syslog(3).
2021-01-16debug: rename assert() to xassert(), to avoid clashing with <assert.h>Craig Barnes-1/+1
2021-01-16Print stack trace on assert() failure or when calling fatal_error()Craig Barnes-11/+1
Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-4/+14
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
2020-10-09xmalloc: add xwcsdup()Daniel Eklöf-0/+7
2020-08-25xmalloc: fix edge case handling in xcalloc() functionCraig Barnes-4/+3
2020-08-07xmalloc: add xrealloc() and xstrndup() functionsCraig Barnes-0/+13
2020-08-05xmalloc: log error to syslog() in fatal_error() functionCraig Barnes-0/+3
2020-08-04config: handle allocation failure explicitlyCraig Barnes-0/+78