mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
typos fixed
This commit is contained in:
parent
3360c997ac
commit
dd3db08be3
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
|
||||||
if (strlen(dir)+ pfx_len > FN_REFLEN-2)
|
if (strlen(dir)+ pfx_len > FN_REFLEN-2)
|
||||||
{
|
{
|
||||||
errno=my_errno= ENAMETOOLONG;
|
errno=my_errno= ENAMETOOLONG;
|
||||||
return 1;
|
DBUG_RETURN(file);
|
||||||
}
|
}
|
||||||
strmov(convert_dirname(to,dir,NullS),prefix_buff);
|
strmov(convert_dirname(to,dir,NullS),prefix_buff);
|
||||||
org_file=mkstemp(to);
|
org_file=mkstemp(to);
|
||||||
|
@ -124,7 +124,7 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
|
||||||
#ifdef OS2
|
#ifdef OS2
|
||||||
/* changing environ variable doesn't work with VACPP */
|
/* changing environ variable doesn't work with VACPP */
|
||||||
char buffer[256], *end;
|
char buffer[256], *end;
|
||||||
buffer[sizeof[buffer)-1]= 0;
|
buffer[sizeof(buffer)-1]= 0;
|
||||||
end= strxnmov(buffer, sizeof(buffer)-1, (char*) "TMP=", dir, NullS);
|
end= strxnmov(buffer, sizeof(buffer)-1, (char*) "TMP=", dir, NullS);
|
||||||
/* remove ending backslash */
|
/* remove ending backslash */
|
||||||
if (end[-1] == '\\')
|
if (end[-1] == '\\')
|
||||||
|
|
Loading…
Add table
Reference in a new issue