From 6fb73b5ae89d00a6a600685ec767f14f430d79c4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 11 Sep 2011 13:10:14 +0900 Subject: [PATCH] Nuke some mystery code. I have no idea why I did that, but it crept in with the var substitution fix, so I guess it might have been an attempt to fix a bug, but it looks like it was broken anyway. --- libs/util/quakefs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/util/quakefs.c b/libs/util/quakefs.c index 9d063a841..4206eebc6 100644 --- a/libs/util/quakefs.c +++ b/libs/util/quakefs.c @@ -318,11 +318,8 @@ qfs_get_gd_params (plitem_t *gdpl, gamedir_t *gamedir, dstring_t *path, if ((p = PL_ObjectForKey (gdpl, "Path")) && *(ps = PL_String (p))) { char *str = qfs_var_subst (ps, vars); - char *e = strchr (str, '"'); - if (!e) - e = str + strlen (str); - qfs_set_var (vars, "path", va ("%.*s", (int) (e - str), str)); + qfs_set_var (vars, "path", str); if (path->str[0]) dstring_appendstr (path, ":"); dstring_appendstr (path, str);