From 64ae5b39f1c3adfabbc7022a1b14ec077140cb77 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 25 Apr 2007 15:00:57 +0000 Subject: use full buffer size when snprintfing (gb) --- mdk-stage1/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c index 83d38ace5..9232684d0 100644 --- a/mdk-stage1/network.c +++ b/mdk-stage1/network.c @@ -781,7 +781,7 @@ static enum return_type get_mirrorlist(mirrorlist_t mirrorlist, int start, char int use_http_proxy = http_proxy_host && http_proxy_port && !streq(http_proxy_host, "") && !streq(http_proxy_port, ""); lowercase(type); - snprintf(path, sizeof(path) -1, "%s/%s.%s.%s.list", MIRRORLIST_PATH, type, version, ARCH); + snprintf(path, sizeof(path), "%s/%s.%s.%s.list", MIRRORLIST_PATH, type, version, ARCH); fd = http_download_file(MIRRORLIST_HOST, path, &size, use_http_proxy ? "http" : NULL, http_proxy_host, http_proxy_port); if (fd < 0) { -- cgit v1.2.1