From b2e7ee9d8ae4b6380d3352a882cafcbbc371c50a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 09:59:23 -0500 Subject: Reduce stack usage for archsuffix variable * Add spaces to banner --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 9be3f4a..364600f 100644 --- a/src/main.c +++ b/src/main.c @@ -17,8 +17,8 @@ const char *BANNER = "---------------------------------------------------------- "╚██████╔╝██║ ██║ ██║ ╚═╝ ██║ ██║ ╚██████╗██║ ██║███████╗\n" " ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝\n" "---------------------------------------------------------------------\n" - " Delivery Generator \n" - " v%s\n" + " Delivery Generator \n" + " v%s \n" "---------------------------------------------------------------------\n" "Copyright (C) 2023 %s,\n" "Association of Universities for Research in Astronomy (AURA)\n"; @@ -180,7 +180,7 @@ int main(int argc, char *argv[], char *arge[]) { uname(&uts); msg(OMC_MSG_L2, "Setting architecture\n"); - char archsuffix[255]; + char archsuffix[20]; ctx.system.arch = strdup(uts.machine); if (!strcmp(ctx.system.arch, "x86_64")) { strcpy(archsuffix, "64"); -- cgit