diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-04-25 15:00:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-04-25 15:00:57 +0000 |
commit | 64ae5b39f1c3adfabbc7022a1b14ec077140cb77 (patch) | |
tree | 22f85f0cf04854b732e84fedcbd732c95e8d4661 /mdk-stage1 | |
parent | fb8ee5f80a16cb9abc9bfb7487c5dbc1a44a0c87 (diff) | |
download | drakx-backup-do-not-use-64ae5b39f1c3adfabbc7022a1b14ec077140cb77.tar drakx-backup-do-not-use-64ae5b39f1c3adfabbc7022a1b14ec077140cb77.tar.gz drakx-backup-do-not-use-64ae5b39f1c3adfabbc7022a1b14ec077140cb77.tar.bz2 drakx-backup-do-not-use-64ae5b39f1c3adfabbc7022a1b14ec077140cb77.tar.xz drakx-backup-do-not-use-64ae5b39f1c3adfabbc7022a1b14ec077140cb77.zip |
use full buffer size when snprintfing (gb)
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |