From 50d6e9107f9be104d2e1ca43e65c580d6430f555 Mon Sep 17 00:00:00 2001 From: Timotej Kapus Date: Fri, 6 Dec 2019 15:14:57 +0000 Subject: Add leading zeros to genbout --- tools/gen-bout/gen-bout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen-bout/gen-bout.cpp b/tools/gen-bout/gen-bout.cpp index f6f11f2a..17a65993 100644 --- a/tools/gen-bout/gen-bout.cpp +++ b/tools/gen-bout/gen-bout.cpp @@ -126,7 +126,7 @@ int main(int argc, char *argv[]) { static int total_args = 0; char arg[1024]; - snprintf(arg, sizeof(arg), "arg%d", total_args++); + snprintf(arg, sizeof(arg), "arg%02d", total_args++); push_obj(&b, (const char *)arg, nbytes, (unsigned char *)argv[i]); char *buf1 = (char *)malloc(1024); -- cgit 1.4.1