Fix signature size constant

I should have paid more attention to sizeof of string literals.
master
Yury Kurlykov 2019-12-05 00:45:39 +10:00
parent 6e6c7df9a3
commit 8e25e7a472
Signed by: t1meshift
GPG Key ID: B133F3167ABF94D8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
*/ */
#define YDB_TABLE_FILE_SIGN "TBL!" #define YDB_TABLE_FILE_SIGN "TBL!"
#define YDB_TABLE_FILE_SIGN_SIZE (sizeof(YDB_TABLE_FILE_SIGN)) #define YDB_TABLE_FILE_SIGN_SIZE (sizeof(YDB_TABLE_FILE_SIGN)-1)
#define YDB_TABLE_FILE_VER_MAJOR_SIZE (1) #define YDB_TABLE_FILE_VER_MAJOR_SIZE (1)
#define YDB_TABLE_FILE_VER_MINOR_SIZE (1) #define YDB_TABLE_FILE_VER_MINOR_SIZE (1)
#define YDB_TABLE_FILE_DATA_START_OFFSET (YDB_TABLE_FILE_SIGN_SIZE + YDB_TABLE_FILE_VER_MAJOR_SIZE + \ #define YDB_TABLE_FILE_DATA_START_OFFSET (YDB_TABLE_FILE_SIGN_SIZE + YDB_TABLE_FILE_VER_MAJOR_SIZE + \