(void) strcpy(home, pw->pw_dir);
}
#endif
- strcpy(home, "C:/");
+ cp = getenv("SystemDrive");
+ if (cp != NULL && *cp != 0)
+ {
+ strcpy(home, cp);
+ strcat(home, "/");
+ }
+ else
+ {
+ strcpy(home, "C:/");
+ }
if (argc > 0) {
if (setjmp(toplevel))
exit(0);