Line
Link Here
|
0 |
-- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp |
0 |
++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/hashmgr.cpp |
Lines 187-193
Link Here
|
187 |
struct hentry* hp = |
187 |
struct hentry* hp = |
188 |
(struct hentry *) malloc (sizeof(struct hentry) + wbl + descl); |
188 |
(struct hentry *) malloc (sizeof(struct hentry) + wbl + descl); |
189 |
if (!hp) return 1; |
189 |
if (!hp) return 1; |
190 |
char * hpw = &(hp->word); |
190 |
char * hpw = HENTRY_WORD(hp); |
191 |
strcpy(hpw, word); |
191 |
strcpy(hpw, word); |
192 |
if (ignorechars != NULL) { |
192 |
if (ignorechars != NULL) { |
193 |
if (utf8) { |
193 |
if (utf8) { |
194 |
-- comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx |
194 |
++ comm-1.9.2/mozilla/extensions/spellcheck/hunspell/src/htypes.hxx |
Lines 68-74
Link Here
|
68 |
#define H_OPT_PHON (1 << 2) |
68 |
#define H_OPT_PHON (1 << 2) |
69 |
|
69 |
|
70 |
// see also csutil.hxx |
70 |
// see also csutil.hxx |
71 |
#define HENTRY_WORD(h) &(h->word) |
71 |
#define HENTRY_WORD(h) ((char *) &h + offsetof(struct hentry, word)) |
72 |
|
72 |
|
73 |
// approx. number of user defined words |
73 |
// approx. number of user defined words |
74 |
#define USERWORD 1000 |
74 |
#define USERWORD 1000 |