comparison libpurple/protocols/msn/msn.c @ 31273:db330f8c1a8c

merge of '6118d1117f31a7fc8db4bd5431af400a7b46ff17' and 'b28bde636d271fd90efcba54f25ecf7af2e5331b'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Tue, 01 Mar 2011 06:24:50 +0000
parents 8fc25b77295a ccda2eba140b
children f3d11c84cc03
comparison
equal deleted inserted replaced
31264:169ebed69ef0 31273:db330f8c1a8c
108 static char buf[BUF_LEN]; 108 static char buf[BUF_LEN];
109 char *tmp; 109 char *tmp;
110 110
111 g_return_val_if_fail(str != NULL, NULL); 111 g_return_val_if_fail(str != NULL, NULL);
112 112
113 g_snprintf(buf, sizeof(buf), "%s%s", str, 113 tmp = g_strchomp(g_utf8_strdown(str, -1));
114 (strchr(str, '@') ? "" : "@hotmail.com")); 114 g_snprintf(buf, sizeof(buf), "%s%s", tmp,
115 115 (strchr(tmp, '@') ? "" : "@hotmail.com"));
116 tmp = g_utf8_strdown(buf, -1);
117 strncpy(buf, tmp, sizeof(buf));
118 g_free(tmp); 116 g_free(tmp);
119 117
120 return buf; 118 return buf;
121 } 119 }
122 120