striplt() is now string_trim()
[citadel.git] / citadel / server / modules / xmpp / serv_xmpp.c
index 1a0ec98c2e1f8c07af0a6834a474384825c55b88..13e8c17649731d02120601b503eeeeb530e074fd 100644 (file)
@@ -311,21 +311,21 @@ void xmpp_xml_end(void *data, const char *supplied_el) {
        if (!strcasecmp(el, "resource")) {
                if (XMPP->chardata_len > 0) {
                        safestrncpy(XMPP->iq_client_resource, XMPP->chardata, sizeof XMPP->iq_client_resource);
-                       striplt(XMPP->iq_client_resource);
+                       string_trim(XMPP->iq_client_resource);
                }
        }
 
        else if (!strcasecmp(el, "username")) {         /* NON SASL ONLY */
                if (XMPP->chardata_len > 0) {
                        safestrncpy(XMPP->iq_client_username, XMPP->chardata, sizeof XMPP->iq_client_username);
-                       striplt(XMPP->iq_client_username);
+                       string_trim(XMPP->iq_client_username);
                }
        }
 
        else if (!strcasecmp(el, "password")) {         /* NON SASL ONLY */
                if (XMPP->chardata_len > 0) {
                        safestrncpy(XMPP->iq_client_password, XMPP->chardata, sizeof XMPP->iq_client_password);
-                       striplt(XMPP->iq_client_password);
+                       string_trim(XMPP->iq_client_password);
                }
        }