diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-03-13 19:11:43 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-03-26 18:25:45 +0200 |
commit | 5a1765290e87f45b970657cfc8ac1e7ca5c50d6a (patch) | |
tree | 316b8b753c02e894a621976a888d8741e3cf9156 /src/basic/log.c | |
parent | 869eeae5727fa42bbb442ef10c0dde985fcdce4d (diff) |
Prep v236 : Add missing SPDX-License-Identifier (2/9) src/basic
Diffstat (limited to 'src/basic/log.c')
-rw-r--r-- | src/basic/log.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/basic/log.c b/src/basic/log.c index ce96ac443..43cb70096 100644 --- a/src/basic/log.c +++ b/src/basic/log.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ /*** This file is part of systemd. @@ -1064,18 +1065,18 @@ int log_struct_iovec_internal( } for (i = 0; i < n_input_iovec; i++) { - if (input_iovec[i].iov_len < strlen("MESSAGE=")) + if (input_iovec[i].iov_len < STRLEN("MESSAGE=")) continue; - if (memcmp(input_iovec[i].iov_base, "MESSAGE=", strlen("MESSAGE=")) == 0) + if (memcmp(input_iovec[i].iov_base, "MESSAGE=", STRLEN("MESSAGE=")) == 0) break; } if (_unlikely_(i >= n_input_iovec)) /* Couldn't find MESSAGE=? */ return -error; - m = strndupa(input_iovec[i].iov_base + strlen("MESSAGE="), - input_iovec[i].iov_len - strlen("MESSAGE=")); + m = strndupa(input_iovec[i].iov_base + STRLEN("MESSAGE="), + input_iovec[i].iov_len - STRLEN("MESSAGE=")); return log_dispatch_internal(level, error, file, line, func, NULL, NULL, NULL, NULL, m); } |