mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 06:30:30 +00:00
stdio-bridge: modernization
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user