summaryrefslogtreecommitdiffstats
path: root/loader/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/ftp.c')
-rw-r--r--loader/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/ftp.c b/loader/ftp.c
index 92bad61e6..7f0286f2d 100644
--- a/loader/ftp.c
+++ b/loader/ftp.c
@@ -441,7 +441,7 @@ int httpGetFileDesc(char * hostname, int port, char * remotename) {
return FTPERR_FAILED_CONNECT;
}
- buf = alloca(strlen(remotename) + 20);
+ buf = alloca(strlen(remotename) + strlen(hostname) + 25);
sprintf(buf, "GET %s HTTP/1.1\t\nHost: %s\r\n\r\n", remotename, hostname);
write(sock, buf, strlen(buf));