Mercurial > pidgin.yaz
comparison src/util.c @ 4771:912bacf989d7
[gaim-migrate @ 5089]
it's amazing the bugs you can still find running on only 4.5 hours of sleep ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 14 Mar 2003 14:28:57 +0000 |
parents | 4bdd9a5fd026 |
children | 677d3cb193a1 |
comparison
equal
deleted
inserted
replaced
4770:c4c28874ecd3 | 4771:912bacf989d7 |
---|---|
794 gchar *strdup_withhtml(const gchar *src) | 794 gchar *strdup_withhtml(const gchar *src) |
795 { | 795 { |
796 gchar *sp, *dest; | 796 gchar *sp, *dest; |
797 gulong destsize; | 797 gulong destsize; |
798 | 798 |
799 if(!src) | |
800 return NULL; | |
801 | |
799 /* | 802 /* |
800 * All we need do is multiply the number of newlines by 3 (the | 803 * All we need do is multiply the number of newlines by 3 (the |
801 * additional length of "<BR>" over "\n"), account for the | 804 * additional length of "<BR>" over "\n"), account for the |
802 * terminator, malloc the space and call strncpy_withhtml. | 805 * terminator, malloc the space and call strncpy_withhtml. |
803 */ | 806 */ |