Sfoglia il codice sorgente

*** empty log message ***

Mike Goslin 25 anni fa
parent
commit
846566100f
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      dtool/src/dtoolutil/filename.cxx

+ 1 - 2
dtool/src/dtoolutil/filename.cxx

@@ -69,12 +69,11 @@ convert_pathname(const string &unix_style_pathname) {
     // This is a pathname that begins with a single letter.  That must
     // be the drive letter.
     windows_pathname = 
-      toupper(unix_style_pathname[1]) + ":" +
+      string(1, toupper(unix_style_pathname[1])) + ":" +
       front_to_back_slash(unix_style_pathname.substr(2));
 
   } else {
     // It does not begin with a single letter, so prefix "PANDA_ROOT".
-
     static string panda_root;
     static bool got_panda_root = false;