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

Fix a problem caused by cleanup changing #define to pointer to literal string.

Due to sizeof being involved, gbak could misinterpret a file as been a valid part of a multi-file backup.
This commit is contained in:
robocop 2004-10-07 08:25:48 +00:00
parent 723b7836a4
commit 78c5931171

View File

@ -756,9 +756,10 @@ typedef hdr_split* HDR_SPLIT;
to 18. Otherwise we will not be able to join the gbk files v5.x */
const size_t HDR_SPLIT_SIZE = sizeof(hdr_split);
static const char* HDR_SPLIT_TAG5 = "InterBase/gsplit, ";
static const char* HDR_SPLIT_TAG6 = "InterBase/gbak, ";
static const char* HDR_SPLIT_TAG = HDR_SPLIT_TAG6;
static const char HDR_SPLIT_TAG5[] = "InterBase/gsplit, ";
static const char HDR_SPLIT_TAG6[] = "InterBase/gbak, ";
// CVC: Don't convert to const char* or you will have to fix the sizeof()'s!!!
#define HDR_SPLIT_TAG HDR_SPLIT_TAG6
const unsigned int MIN_SPLIT_SIZE = 2048; // bytes
// Global switches and data