Mercurial > pidgin
comparison plugins/spellchk.c @ 138:e8ea1e2fdf0c
[gaim-migrate @ 148]
Bugfixes and memleaks mostly.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Wed, 19 Apr 2000 12:36:18 +0000 |
| parents | f7a5f376f54e |
| children | 522e885485f0 |
comparison
equal
deleted
inserted
replaced
| 137:fe81c8b4951d | 138:e8ea1e2fdf0c |
|---|---|
| 46 w = words; | 46 w = words; |
| 47 while (w) { | 47 while (w) { |
| 48 struct replace_words *r; | 48 struct replace_words *r; |
| 49 r = (struct replace_words *)(w->data); | 49 r = (struct replace_words *)(w->data); |
| 50 tmp = have_word(*message, word); | 50 tmp = have_word(*message, word); |
| 51 if (!strcmp(have_word(*message, word), r->bad)) { | 51 if (!strcmp(tmp, r->bad)) { |
| 52 substitute(message, word, strlen(r->bad), | 52 substitute(message, word, strlen(r->bad), |
| 53 r->good); | 53 r->good); |
| 54 l += num_words(r->good) - num_words(r->bad); | 54 l += num_words(r->good) - num_words(r->bad); |
| 55 i += num_words(r->good) - num_words(r->bad); | 55 i += num_words(r->good) - num_words(r->bad); |
| 56 } | 56 } |
