1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-09 17:03:00 +03:00

Fix header's size of structs defines in ispell.

This commit is contained in:
Teodor Sigaev
2007-09-11 13:15:41 +00:00
parent a441035198
commit 13ad48eb8a
2 changed files with 4 additions and 4 deletions

View File

@@ -461,9 +461,9 @@ mkSPNode(IspellDict * Conf, int low, int high, int level)
if (!nchar)
return NULL;
rs = (SPNode *) malloc(SPNHRDSZ + nchar * sizeof(SPNodeData));
rs = (SPNode *) malloc(SPNHDRSZ + nchar * sizeof(SPNodeData));
MEMOUT(rs);
memset(rs, 0, SPNHRDSZ + nchar * sizeof(SPNodeData));
memset(rs, 0, SPNHDRSZ + nchar * sizeof(SPNodeData));
rs->length = nchar;
data = rs->data;

View File

@@ -26,7 +26,7 @@ typedef struct SPNode
SPNodeData data[1];
} SPNode;
#define SPNHRDSZ (sizeof(uint32))
#define SPNHDRSZ (offsetof(SPNode,data))
typedef struct spell_struct
@@ -88,7 +88,7 @@ typedef struct AffixNode
AffixNodeData data[1];
} AffixNode;
#define ANHRDSZ (sizeof(uint32))
#define ANHRDSZ (offsetof(AffixNode, data))
typedef struct
{