summaryrefslogtreecommitdiff
path: root/src/stdio-bridge
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-19 20:01:35 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-20 23:00:09 +0100
commit76f0199f2ce007c50b5a38f7ff6c51167c3a05a0 (patch)
treedafc5f0bacb76250892f398db00cc1a22339403a /src/stdio-bridge
parent66e35261ef51119189486e9a31e7b97e8e18e255 (diff)
stdio-bridge: modernization
Diffstat (limited to 'src/stdio-bridge')
-rw-r--r--src/stdio-bridge/stdio-bridge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c
index adc692f1eb..ea82c8f7c9 100644
--- a/src/stdio-bridge/stdio-bridge.c
+++ b/src/stdio-bridge/stdio-bridge.c
@@ -46,7 +46,7 @@ static void format_uid(char *buf, size_t l) {
assert(l > 0);
snprintf(text, sizeof(text)-1, "%llu", (unsigned long long) geteuid());
- text[sizeof(text)-1] = 0;
+ char_array_0(text);
memset(buf, 0, l);