about summary refs log tree commit diff
path: root/export.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-29 16:57:55 -0500
committerJune McEnroe <june@causal.agency>2020-11-29 16:57:55 -0500
commit08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77 (patch)
tree7b6c505c304f02e73bf46daac92acc929fdc5db2 /export.c
parentRearrange archive.h (diff)
downloadbubger-08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77.tar.gz
bubger-08c8ff154fbcfa24ed89df7dfdedd5f4e0deab77.zip
Factor out uint32_t stringify
Diffstat (limited to 'export.c')
-rw-r--r--export.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/export.c b/export.c
index 2b579c3..d4039e2 100644
--- a/export.c
+++ b/export.c
@@ -40,10 +40,8 @@
 #include "imap.h"
 
 static char *exportPath(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},
 	};