8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 01:23:03 +01:00

Use universal path separator.

This commit is contained in:
dimitr 2002-11-17 15:47:46 +00:00
parent 770f5d85a2
commit 86325858c4

View File

@ -50,6 +50,7 @@
#include "../jrd/msg_encode.h"
#include "../jrd/iberr.h"
#include "../jrd/gds_proto.h"
#include "../jrd/os/path_utils.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@ -2386,8 +2387,11 @@ void API_ROUTINE gds__prefix(TEXT *resultString, TEXT *file)
}
strcat(resultString, ib_prefix);
if (resultString[strlen(resultString) - 1] != '/')
strcat(resultString, "/");
int len = strlen(resultString);
if (resultString[len - 1] != PathUtils::dir_sep) {
resultString[len] = PathUtils::dir_sep;
resultString[len + 1] = 0;
}
strcat(resultString, file);
}
#endif /* !defined(VMS) */