diff options
Diffstat (limited to 'src/core/unit-printf.c')
-rw-r--r-- | src/core/unit-printf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c index 8e50a81b97..ee8b0b3de8 100644 --- a/src/core/unit-printf.c +++ b/src/core/unit-printf.c @@ -201,10 +201,10 @@ int unit_name_printf(const Unit *u, const char* format, char **ret) { assert(format); assert(ret); - return specifier_printf(format, table, u, ret); + return specifier_printf(format, UNIT_NAME_MAX, table, u, ret); } -int unit_full_printf(const Unit *u, const char *format, char **ret) { +int unit_full_printf_full(const Unit *u, const char *format, size_t max_length, char **ret) { /* This is similar to unit_name_printf() but also supports unescaping. Also, adds a couple of additional codes * (which are likely not suitable for unescaped inclusion in unit names): * @@ -265,5 +265,5 @@ int unit_full_printf(const Unit *u, const char *format, char **ret) { {} }; - return specifier_printf(format, table, u, ret); + return specifier_printf(format, max_length, table, u, ret); } |