hmm, how did that happen? ah well

This commit is contained in:
Bill Currie 2007-03-18 10:42:16 +00:00 committed by Jeff Teunissen
parent 5a0e2460a3
commit b320778b92

View file

@ -1407,8 +1407,8 @@ QFS_Rename (const char *old_path, const char *new_path)
dstring_t *full_new = dstring_new (); dstring_t *full_new = dstring_new ();
int ret; int ret;
dsprintf (full_old, "%s/%s", qfs_userpath, old); dsprintf (full_old, "%s/%s", qfs_userpath, old_path);
dsprintf (full_new, "%s/%s", qfs_userpath, new); dsprintf (full_new, "%s/%s", qfs_userpath, new_path);
if ((ret = QFS_CreatePath (full_new->str)) != -1) if ((ret = QFS_CreatePath (full_new->str)) != -1)
ret = Qrename (full_old->str, full_new->str); ret = Qrename (full_old->str, full_new->str);
dstring_delete (full_old); dstring_delete (full_old);