shithub: choc

Download patch

ref: ab71797564edda976ed31275b8e65e8975f06860
parent: 4cce5073074d2d7868733a0d5682b9fdd5a9f9c5
author: Simon Howard <fraggle@gmail.com>
date: Tue Aug 7 21:17:38 EDT 2007

Don't assume Steam InstallPath ends in a \

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 947

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -290,7 +290,7 @@
         subpath = malloc(strlen(install_path) 
                          + strlen(steam_install_subdirs[i]) + 5);
 
-        sprintf(subpath, "%s%s", install_path, steam_install_subdirs[i]);
+        sprintf(subpath, "%s\\%s", install_path, steam_install_subdirs[i]);
 
         if (M_FileExists(subpath))
         {