Mercurial > pidgin.yaz
comparison src/util.h @ 7675:66d9440db6ec
[gaim-migrate @ 8319]
marv writes: "This fixes some crashes on unusual long profile fields
for yahoo, and probably msn. One test case is the yahoo
[l]user "kent_nwo4life", which crashes without this patch."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 30 Nov 2003 23:49:45 +0000 |
parents | 42e5d2f4e4b1 |
children | 1363f91da9cc |
comparison
equal
deleted
inserted
replaced
7674:3d49c33db741 | 7675:66d9440db6ec |
---|---|
172 * | 172 * |
173 * This is a scary function. See protocols/msn/msn.c and | 173 * This is a scary function. See protocols/msn/msn.c and |
174 * protocols/yahoo/yahoo.c for example usage. | 174 * protocols/yahoo/yahoo.c for example usage. |
175 * | 175 * |
176 * @param str The string to parse. | 176 * @param str The string to parse. |
177 * @param dest_buffer The destination buffer to append the new | 177 * @param len The size of str. |
178 * @param dest The destination GString to append the new | |
178 * field info to. | 179 * field info to. |
179 * @param start_token The beginning token. | 180 * @param start_token The beginning token. |
180 * @param skip The number of characters to skip after the | 181 * @param skip The number of characters to skip after the |
181 * start token. | 182 * start token. |
182 * @param end_token The ending token. | 183 * @param end_token The ending token. |
186 * @param is_link TRUE if this should be a link, or FALSE otherwise. | 187 * @param is_link TRUE if this should be a link, or FALSE otherwise. |
187 * @param link_prefix The prefix for the link. | 188 * @param link_prefix The prefix for the link. |
188 * | 189 * |
189 * @return TRUE if successful, or FALSE otherwise. | 190 * @return TRUE if successful, or FALSE otherwise. |
190 */ | 191 */ |
191 gboolean gaim_markup_extract_info_field(const char *str, char *dest_buffer, | 192 gboolean gaim_markup_extract_info_field(const char *str, int len, GString *dest, |
192 const char *start_token, int skip, | 193 const char *start_token, int skip, |
193 const char *end_token, | 194 const char *end_token, char check_value, |
194 char check_value, | 195 const char *no_value_token, |
195 const char *no_value_token, | 196 const char *display_name, gboolean is_link, |
196 const char *display_name, | 197 const char *link_prefix); |
197 gboolean is_link, | |
198 const char *link_prefix); | |
199 | 198 |
200 /** | 199 /** |
201 * Converts HTML markup to XHTML. | 200 * Converts HTML markup to XHTML. |
202 * | 201 * |
203 * @param html The HTML markup. | 202 * @param html The HTML markup. |