[v0.97] Fix macOS compilation issue as noted by #73

This commit is contained in:
Dr-Noob
2021-04-09 18:32:34 +02:00
parent b45c09efff
commit 6dd041bf9f

View File

@@ -190,13 +190,14 @@ char* build_short_options() {
memset(str, 0, sizeof(char) * (len*2 + 1)); memset(str, 0, sizeof(char) * (len*2 + 1));
#ifdef ARCH_X86 #ifdef ARCH_X86
sprintf(str, "%c%c:%c:%c%c%c%c", sprintf(str, "%c:%c:%c%c%c%c%c",
c[ARG_RAW], c[ARG_STYLE], c[ARG_COLOR], c[ARG_HELP], c[ARG_RAW],
c[ARG_DEBUG], c[ARG_VERBOSE], c[ARG_VERSION]);
#else #else
sprintf(str, "%c:%c:%c%c%c%c", sprintf(str, "%c:%c:%c%c%c%c",
#endif
c[ARG_STYLE], c[ARG_COLOR], c[ARG_HELP], c[ARG_STYLE], c[ARG_COLOR], c[ARG_HELP],
c[ARG_DEBUG], c[ARG_VERBOSE], c[ARG_VERSION]); c[ARG_DEBUG], c[ARG_VERBOSE], c[ARG_VERSION]);
#endif
return str; return str;
} }