From 36c480447a025f965af871cac6722ffc2b550f05 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 26 Feb 2018 22:09:50 +0000 Subject: libbb: ensure build details are only stored once Determine the size of the MINGW_VER string at compile time so it's only stored once. --- libbb/appletlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/appletlib.c b/libbb/appletlib.c index 89f76443c..1bae940c2 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -820,7 +820,7 @@ int busybox_main(int argc UNUSED_PARAM, char **argv) full_write2_str(bb_banner); /* reuse const string */ full_write2_str(" multi-call binary\n"); /* reuse */ #if defined(MINGW_VER) - if (strlen(MINGW_VER)) { + if (sizeof(MINGW_VER) > 5) { full_write2_str(MINGW_VER "\n\n"); } #endif -- cgit v1.2.3-55-g6feb