summaryrefslogtreecommitdiff
path: root/libtac
diff options
context:
space:
mode:
Diffstat (limited to 'libtac')
-rw-r--r--libtac/lib/xalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libtac/lib/xalloc.c b/libtac/lib/xalloc.c
index 8fcce26..3fddcfb 100644
--- a/libtac/lib/xalloc.c
+++ b/libtac/lib/xalloc.c
@@ -59,9 +59,11 @@ char *xstrdup(const char *s) {
char *xstrcpy(char *dst, const char *src, size_t dst_size) {
if (dst == NULL) {
TACSYSLOG((LOG_ERR, "xstrcpy(): dst == NULL"));
+ abort();
}
if (src == NULL) {
TACSYSLOG((LOG_ERR, "xstrcpy(): src == NULL"));
+ abort();
}
if (!dst_size)
return NULL;