mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
stdio-bridge: modernization
This commit is contained in:
parent
66e35261ef
commit
76f0199f2c
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user