diff options
Diffstat (limited to 'win32/mingw.c')
-rw-r--r-- | win32/mingw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mingw.c b/win32/mingw.c index a6362333d..75635fdf1 100644 --- a/win32/mingw.c +++ b/win32/mingw.c | |||
@@ -1729,7 +1729,7 @@ char *alloc_system_drive(const char *path) | |||
1729 | { | 1729 | { |
1730 | const char *sd = need_system_drive(path); | 1730 | const char *sd = need_system_drive(path); |
1731 | char *s = xmalloc(strlen(path) + 5 + (sd ? strlen(sd) : 0)); | 1731 | char *s = xmalloc(strlen(path) + 5 + (sd ? strlen(sd) : 0)); |
1732 | sprintf(s, "%s%s", sd ?: "", path); | 1732 | strcpy(stpcpy(s, sd ?: ""), path); |
1733 | return s; | 1733 | return s; |
1734 | } | 1734 | } |
1735 | 1735 | ||