1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Portability fixes + a couple of bug fixes introduced by last push.

This commit is contained in:
monty@hundin.mysql.fi
2001-10-08 23:20:19 +03:00
parent 46a660f450
commit 196f620e90
11 changed files with 48 additions and 140 deletions

View File

@ -83,7 +83,7 @@ char *convert_dirname(char *to, const char *from, const char *from_end)
#if FN_LIBCHAR != '/' || defined(FN_C_BEFORE_DIR_2)
{
while (*from && *from != end)
for (; *from && from != from_end; from++)
{
if (*from == '/')
*to++= FN_LIBCHAR;
@ -94,8 +94,9 @@ char *convert_dirname(char *to, const char *from, const char *from_end)
*to++= FN_C_AFTER_DIR;
#endif
else
*to++= *from++;
*to++= *from;
}
*to=0;
}
#else
/* This is ok even if to == from, becasue we need to cut the string */