chiark / gitweb /
stdio-bridge: modernization
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Mar 2013 19:01:35 +0000 (20:01 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Mar 2013 22:00:09 +0000 (23:00 +0100)
src/stdio-bridge/stdio-bridge.c

index adc692f..ea82c8f 100644 (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);