- Timestamp:
- Oct 2, 2014, 1:18:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.cc
r392 r432 79 79 } 80 80 if (!ok) 81 strcpy(buf, ".");81 buf[0] = '\0'; 82 82 } 83 83 home = buf; … … 110 110 { 111 111 *end = '\0'; 112 ok = TRUE; 113 // truncate \bin if present 112 // truncate \bin if present (otherwise this path is considered invalid) 114 113 end = strrchr(buf, '\\'); 115 114 if (end && stricmp(end + 1, "bin") == 0) 115 { 116 116 *end = '\0'; 117 ok = TRUE; 118 } 117 119 } 118 120 } 119 121 if (!ok) 120 strcpy(buf, ".");122 buf[0] = '\0'; 121 123 } 122 124 jre = buf;
Note:
See TracChangeset
for help on using the changeset viewer.