diff options
author | June McEnroe <june@causal.agency> | 2020-11-29 16:57:55 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-11-29 16:57:55 -0500 |
commit | 08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77 (patch) | |
tree | 7b6c505c304f02e73bf46daac92acc929fdc5db2 /concat.c | |
parent | Rearrange archive.h (diff) | |
download | bubger-08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77.tar.gz bubger-08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77.zip |
Factor out uint32_t stringify
Diffstat (limited to '')
-rw-r--r-- | concat.c | 4 |
1 files changed, 1 insertions, 3 deletions
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}, }; |