From 6dd041bf9f96f2b73a3401ecc4a2b59d0b9bfed4 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Fri, 9 Apr 2021 18:32:34 +0200 Subject: [PATCH] [v0.97] Fix macOS compilation issue as noted by #73 --- src/common/args.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/args.c b/src/common/args.c index 4359a47..e9239bc 100644 --- a/src/common/args.c +++ b/src/common/args.c @@ -190,13 +190,14 @@ char* build_short_options() { memset(str, 0, sizeof(char) * (len*2 + 1)); #ifdef ARCH_X86 - sprintf(str, "%c%c:%c:%c%c%c%c", - c[ARG_RAW], + sprintf(str, "%c:%c:%c%c%c%c%c", + c[ARG_STYLE], c[ARG_COLOR], c[ARG_HELP], c[ARG_RAW], + c[ARG_DEBUG], c[ARG_VERBOSE], c[ARG_VERSION]); #else sprintf(str, "%c:%c:%c%c%c%c", -#endif c[ARG_STYLE], c[ARG_COLOR], c[ARG_HELP], c[ARG_DEBUG], c[ARG_VERBOSE], c[ARG_VERSION]); +#endif return str; }