diff options
author | monty@hundin.mysql.fi <> | 2001-10-31 03:22:31 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-10-31 03:22:31 +0200 |
commit | 5a9ce774dc413ac7b6342a9097f4e2456d0df63f (patch) | |
tree | a7cd1bf6f7f295d11ffce88081f69bc1963bfd06 /mysys/my_tempnam.c | |
parent | 7f38949c6be7dba794a786b4fe53132f7f5751e5 (diff) | |
download | mariadb-git-5a9ce774dc413ac7b6342a9097f4e2456d0df63f.tar.gz |
Update for OS2 (patch from Yuri Dario).
Use LONG_TIMEOUT (one year) instead of ~0 for long timeouts
Fixed error messages.
Fixed problem with const propagation when comparing columns of different types
Diffstat (limited to 'mysys/my_tempnam.c')
-rw-r--r-- | mysys/my_tempnam.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_tempnam.c b/mysys/my_tempnam.c index 7da037e8d49..6b7ac099581 100644 --- a/mysys/my_tempnam.c +++ b/mysys/my_tempnam.c @@ -95,6 +95,9 @@ my_string my_tempnam(const char *dir, const char *pfx, // changing environ variable doesn't work with VACPP char buffer[256]; sprintf( buffer, "TMP=%s", dir); + // remove ending backslash + if (buffer[strlen(buffer)-1] == '\\') + buffer[strlen(buffer)-1] = '\0'; putenv( buffer); #else old_env=(char**)environ; |