From 75b72cb68744a37257269ff39e30cd254f103802 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 16 Mar 2023 10:53:09 +0000 Subject: make: code shrink Use alloc_ext_space() instead of a hand-coded equivalent. Saves 16-32 bytes. --- miscutils/make.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miscutils/make.c b/miscutils/make.c index fcd1e3fbe..eddc07126 100644 --- a/miscutils/make.c +++ b/miscutils/make.c @@ -2734,8 +2734,8 @@ int make_main(int argc UNUSED_PARAM, char **argv) #if ENABLE_PLATFORM_MINGW32 if (has_path(argv[0])) { // Add extension if necessary, else realpath() will fail - char *p = xmalloc(strlen(argv[0]) + 5); - add_win32_extension(strcpy(p, argv[0])); + char *p = alloc_ext_space(argv[0]); + add_win32_extension(p); path = newpath = xmalloc_realpath(p); free(p); if (!path) { -- cgit v1.2.3-55-g6feb