From 08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 29 Nov 2020 16:57:55 -0500 Subject: Factor out uint32_t stringify --- concat.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'concat.c') diff --git a/concat.c b/concat.c index c59a828..bd41913 100644 --- a/concat.c +++ b/concat.c @@ -82,10 +82,8 @@ void concatData( } static char *uidPath(uint32_t uid, const char *type) { - char str[32]; - snprintf(str, sizeof(str), "%" PRIu32, uid); struct Variable vars[] = { - { "uid", str }, + { "uid", u32(uid).s }, { "type", type }, {0}, }; -- cgit 1.4.1