aboutsummaryrefslogtreecommitdiff
path: root/miscutils/make.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-03-16 10:53:09 +0000
committerRon Yorston <rmy@pobox.com>2023-03-16 10:53:09 +0000
commit75b72cb68744a37257269ff39e30cd254f103802 (patch)
tree8924a469b2df216382216a63c82c14ec6414a454 /miscutils/make.c
parent184edf9bd672bc93856157098d528eab48948ba9 (diff)
downloadbusybox-w32-75b72cb68744a37257269ff39e30cd254f103802.tar.gz
busybox-w32-75b72cb68744a37257269ff39e30cd254f103802.tar.bz2
busybox-w32-75b72cb68744a37257269ff39e30cd254f103802.zip
make: code shrink
Use alloc_ext_space() instead of a hand-coded equivalent. Saves 16-32 bytes.
Diffstat (limited to '')
-rw-r--r--miscutils/make.c4
1 files 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)
2734#if ENABLE_PLATFORM_MINGW32 2734#if ENABLE_PLATFORM_MINGW32
2735 if (has_path(argv[0])) { 2735 if (has_path(argv[0])) {
2736 // Add extension if necessary, else realpath() will fail 2736 // Add extension if necessary, else realpath() will fail
2737 char *p = xmalloc(strlen(argv[0]) + 5); 2737 char *p = alloc_ext_space(argv[0]);
2738 add_win32_extension(strcpy(p, argv[0])); 2738 add_win32_extension(p);
2739 path = newpath = xmalloc_realpath(p); 2739 path = newpath = xmalloc_realpath(p);
2740 free(p); 2740 free(p);
2741 if (!path) { 2741 if (!path) {