summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/network.c')
-rw-r--r--mdk-stage1/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index f3e221047..ab512399a 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -1002,7 +1002,7 @@ enum return_type ftp_prepare(void)
int ftp_serv_response = -1;
int fd, size;
int need_arch = 0;
- char ftp_hostname[494];
+ char ftp_hostname[500];
if (!IS_AUTOMATIC) {
if (answers == NULL)
@@ -1108,7 +1108,7 @@ enum return_type ftp_prepare(void)
if (use_http_proxy) {
add_to_env("METHOD", "http");
- sprintf(location_full, "ftp://%s%s", ftp_hostname, answers[1]);
+ snprintf(location_full, sizeof(location_full), "ftp://%s%s", ftp_hostname, answers[1]);
if (need_arch)
strcat(location_full, "/" ARCH);
add_to_env("URLPREFIX", location_full);