diff options
Diffstat (limited to 'src/stdio-bridge/stdio-bridge.c')
-rw-r--r-- | src/stdio-bridge/stdio-bridge.c | 2 |
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); |