summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/x11_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index 67763ea0..5b0266c5 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -317,7 +317,7 @@ void winreplacefile(char *source, char *target)
void wincopyfile(char *source, char *target)
{
- char *buf = malloc(strlen(source)+strlen(target)+4);
+ char *buf = malloc(strlen(source)+strlen(target)+5);
if (buf)
{
sprintf(buf, "cp %s %s", source, target);