stdio-bridge: modernization

This commit is contained in:
Lennart Poettering
2013-03-19 20:01:35 +01:00
parent 66e35261ef
commit 76f0199f2c

View File

@@ -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);