comparison src/mime.c @ 11780:8cb75ba77f9d

[gaim-migrate @ 14071] I've been time travelling, I bumped into Gtk 2.0 on my way. Gaim now works with Gtk 2.0 again. Next stop: gtk 1.2 ... erm. what? ... NO! PS. resiak: I won! committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Mon, 24 Oct 2005 00:31:41 +0000
parents 57fccea36e36
children d4cd7d443795
comparison
equal deleted inserted replaced
11779:80af53b5b3c5 11780:8cb75ba77f9d
429 429
430 fields_load(&doc->fields, &b, &n); 430 fields_load(&doc->fields, &b, &n);
431 431
432 { 432 {
433 const char *ct = fields_get(&doc->fields, "content-type"); 433 const char *ct = fields_get(&doc->fields, "content-type");
434 if(ct && g_str_has_prefix(ct, "multipart")) { 434 if(ct && gaim_str_has_prefix(ct, "multipart")) {
435 char *bd = strrchr(ct, '='); 435 char *bd = strrchr(ct, '=');
436 if(bd++) { 436 if(bd++) {
437 doc_parts_load(doc, bd, b, n); 437 doc_parts_load(doc, bd, b, n);
438 } 438 }
439 } 439 }
455 g_return_if_fail(doc != NULL); 455 g_return_if_fail(doc != NULL);
456 g_return_if_fail(str != NULL); 456 g_return_if_fail(str != NULL);
457 457
458 { 458 {
459 const char *ct = fields_get(&doc->fields, "content-type"); 459 const char *ct = fields_get(&doc->fields, "content-type");
460 if(ct && g_str_has_prefix(ct, "multipart")) { 460 if(ct && gaim_str_has_prefix(ct, "multipart")) {
461 char *b = strrchr(ct, '='); 461 char *b = strrchr(ct, '=');
462 if(b++) bd = b; 462 if(b++) bd = b;
463 } 463 }
464 } 464 }
465 465