|
|
|
@ -85,10 +85,10 @@ my_string my_tempnam(const char *dir, const char *pfx, |
|
|
|
dir=temp; |
|
|
|
} |
|
|
|
#ifdef OS2 |
|
|
|
// changing environ variable doesn't work with VACPP |
|
|
|
/* changing environ variable doesn't work with VACPP */ |
|
|
|
char buffer[256]; |
|
|
|
sprintf( buffer, "TMP=%s", dir); |
|
|
|
// remove ending backslash |
|
|
|
/* remove ending backslash */ |
|
|
|
if (buffer[strlen(buffer)-1] == '\\') |
|
|
|
buffer[strlen(buffer)-1] = '\0'; |
|
|
|
putenv( buffer); |
|
|
|
|