Mercurial > pidgin.yaz
comparison plugins/spellchk.c @ 257:a93e273ca1d6
[gaim-migrate @ 267]
No one actually uses this, do they.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 24 May 2000 07:25:33 +0000 |
parents | 522e885485f0 |
children | be408b41c172 |
comparison
equal
deleted
inserted
replaced
256:7615d22ad227 | 257:a93e273ca1d6 |
---|---|
226 | 226 |
227 return tmp; | 227 return tmp; |
228 } | 228 } |
229 | 229 |
230 void substitute(char **mes, int pos, int m, char *text) { | 230 void substitute(char **mes, int pos, int m, char *text) { |
231 char *new = malloc(strlen(*mes) + strlen(text) + 1); | 231 char *new = g_malloc(strlen(*mes) + strlen(text) + 1); |
232 char *tmp; | 232 char *tmp; |
233 new[0] = 0; | 233 new[0] = 0; |
234 | 234 |
235 strncat(new, *mes, pos); | 235 strncat(new, *mes, pos); |
236 strcat(new, text); | 236 strcat(new, text); |
237 | 237 |
238 strcat(new, &(*mes)[pos + m]); | 238 strcat(new, &(*mes)[pos + m]); |
239 tmp = *mes; | 239 tmp = *mes; |
240 *mes = new; | 240 *mes = new; |
241 free(tmp); | 241 g_free(tmp); |
242 } | 242 } |
243 | 243 |
244 GtkWidget *configwin = NULL; | 244 GtkWidget *configwin = NULL; |
245 GtkWidget *list; | 245 GtkWidget *list; |
246 GtkWidget *bad_entry; | 246 GtkWidget *bad_entry; |