Kaynağa Gözat

OS/2: base dir needs to end with a path separator.

Ryan C. Gordon 8 yıl önce
ebeveyn
işleme
9aebcff5ba
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/platform_os2.c

+ 1 - 1
src/platform_os2.c

@@ -241,7 +241,7 @@ char *__PHYSFS_platformCalcBaseDir(const char *argv0)
     {
         if (buf[len] == '\\')
         {
-            buf[len] = '\0';
+            buf[len + 1] = '\0';
             break;
         } /* if */
     } /* for */