comparison libpurple/protocols/myspace/myspace.c @ 25396:94a6eb10c691

propagate from branch 'im.pidgin.pidgin' (head 42f77b0e8b8ebf5ff3c30d8f8022ac5d289631e8) to branch 'im.pidgin.pidgin.next.minor' (head 34e0b0f026b8d4ed54b9a4aebb5c0afe064e7ec1)
author Gary Kramlich <grim@reaperworld.com>
date Thu, 15 Jan 2009 22:37:48 +0000
parents 68265bcc8814 b15168f2b7ee
children 4b8c4870b13a
comparison
equal deleted inserted replaced
25395:64d255b0a5a7 25396:94a6eb10c691
2891 /* Have username. */ 2891 /* Have username. */
2892 strncpy(normalized, str, BUF_LEN); 2892 strncpy(normalized, str, BUF_LEN);
2893 } 2893 }
2894 2894
2895 /* Strip spaces. */ 2895 /* Strip spaces. */
2896 for (i=0, j=0; normalized[j]; i++, j++) { 2896 for (i=0, j=0; normalized[j]; j++) {
2897 while (normalized[j] == ' ') 2897 if (normalized[j] != ' ')
2898 j++; 2898 normalized[i++] = normalized[j];
2899 normalized[i] = normalized[j];
2900 } 2899 }
2901 normalized[i] = '\0'; 2900 normalized[i] = '\0';
2902 2901
2903 /* Lowercase and perform UTF-8 normalization. */ 2902 /* Lowercase and perform UTF-8 normalization. */
2904 tmp1 = g_utf8_strdown(normalized, -1); 2903 tmp1 = g_utf8_strdown(normalized, -1);