summaryrefslogtreecommitdiffstats
path: root/src/basic/string-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-05 17:57:14 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-05 19:27:23 +0100
commitfd4e991dfdcce4c1b322f52effa10de9f9d6690d (patch)
treefdf77e082e7a8f5f91bcc2baf412dd1f5fcab761 /src/basic/string-util.c
parentnetwork-wait-online: use sd_event_add_time_relative() (diff)
downloadsystemd-fd4e991dfdcce4c1b322f52effa10de9f9d6690d.tar.xz
systemd-fd4e991dfdcce4c1b322f52effa10de9f9d6690d.zip
Drop parens from around already-parenthesized defines
Diffstat (limited to 'src/basic/string-util.c')
-rw-r--r--src/basic/string-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/string-util.c b/src/basic/string-util.c
index c369f59ee1..058eec54ff 100644
--- a/src/basic/string-util.c
+++ b/src/basic/string-util.c
@@ -71,7 +71,7 @@ char *strnappend(const char *s, const char *suffix, size_t b) {
assert(suffix);
a = strlen(s);
- if (b > (SIZE_MAX) - a)
+ if (b > SIZE_MAX - a)
return NULL;
r = new(char, a+b+1);