From: <the...@us...> - 2006-07-10 06:59:54
|
Revision: 16476 Author: thekingant Date: 2006-07-09 23:59:51 -0700 (Sun, 09 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16476&view=rev Log Message: ----------- Backport SVN revision #16475 from HEAD to v2_0_0 Original commit message: Fix a bug where the last character of the value returned by gaim_strdup_withhtml would be cut off. I accidentally introduced this bug in my change a day or two ago. My bad! ViewCVS Links: ------------- http://svn.sourceforge.net/gaim/?rev=16475&view=rev Modified Paths: -------------- branches/v2_0_0/src/util.c Modified: branches/v2_0_0/src/util.c =================================================================== --- branches/v2_0_0/src/util.c 2006-07-10 06:59:27 UTC (rev 16475) +++ branches/v2_0_0/src/util.c 2006-07-10 06:59:51 UTC (rev 16476) @@ -2684,8 +2684,8 @@ g_return_val_if_fail(src != NULL, NULL); /* New length is (length of src) + (number of \n's * 3) - (number of \r's) + 1 */ - destsize = 0; - for (i = 0, j = 0; src[i] != '\0'; i++) + destsize = 1; + for (i = 0; src[i] != '\0'; i++) { if (src[i] == '\n') destsize += 4; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |