diff options
Diffstat (limited to 'src/journal/audit-type.h')
-rw-r--r-- | src/journal/audit-type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/audit-type.h b/src/journal/audit-type.h index 1dd2163707..603ad41cc7 100644 --- a/src/journal/audit-type.h +++ b/src/journal/audit-type.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once /*** @@ -30,7 +31,7 @@ int audit_type_from_string(const char *s); const char *_s_; \ _s_ = audit_type_to_string(type); \ if (!_s_) { \ - _s_ = alloca(strlen("AUDIT") + DECIMAL_STR_MAX(int)); \ + _s_ = alloca(STRLEN("AUDIT") + DECIMAL_STR_MAX(int)); \ sprintf((char*) _s_, "AUDIT%04i", type); \ } \ _s_; \ |