From 3090a64faafec7b144ca8ae9bd7edeb3e9d05214 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 28 Dec 2010 10:28:46 +0900 Subject: [PATCH] Use the correct param for the full_new path. This fixes the broken downloads. *taniwha dons a brown paper bag. --- libs/util/quakefs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/util/quakefs.c b/libs/util/quakefs.c index 0898a7dd9..45cc6ea4e 100644 --- a/libs/util/quakefs.c +++ b/libs/util/quakefs.c @@ -1447,9 +1447,11 @@ QFS_Rename (const char *old_path, const char *new_path) int ret; if ((ret = qfs_expand_userpath (full_old, old_path)) != -1) - if ((ret = qfs_expand_userpath (full_new, old_path)) != -1) - if ((ret = Sys_CreatePath (full_new->str)) != -1) + if ((ret = qfs_expand_userpath (full_new, new_path)) != -1) + if ((ret = Sys_CreatePath (full_new->str)) != -1) { + Sys_Printf ("QFS_Rename %s %s\n", full_old->str, full_new->str); ret = Qrename (full_old->str, full_new->str); + } dstring_delete (full_old); dstring_delete (full_new); return ret;