aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 09:59:23 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 09:59:23 -0500
commitb2e7ee9d8ae4b6380d3352a882cafcbbc371c50a (patch)
treea054fd5fee01c25566da1f7e570a4c7c4fa03d76
parent0760a46ffad286520f59cade3082ef79cdefa3d0 (diff)
downloadstasis-b2e7ee9d8ae4b6380d3352a882cafcbbc371c50a.tar.gz
Reduce stack usage for archsuffix variable
* Add spaces to banner
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
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");