diff options
-rw-r--r-- | miscutils/make.c | 4 |
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) { |