# HG changeset patch # User Andreas Monitzer # Date 1181092998 0 # Node ID ac1ee71efd89f1af8335dc9e6dffc41a23fdb2d2 # Parent 95affacf6f823bfa1fa7d327e801dc124686256c Small fix for caps diff -r 95affacf6f82 -r ac1ee71efd89 libpurple/protocols/jabber/presence.c --- a/libpurple/protocols/jabber/presence.c Wed Jun 06 01:19:49 2007 +0000 +++ b/libpurple/protocols/jabber/presence.c Wed Jun 06 01:23:18 2007 +0000 @@ -182,7 +182,7 @@ /* add the extensions */ char extlist[1024]; unsigned remaining = 1023; /* one less for the \0 */ - GSList *feature; + GList *feature; extlist[0] = '\0'; for(feature = js->features; feature && remaining > 0; feature = feature->next) { @@ -195,8 +195,10 @@ strncat(extlist,feat->shortname,remaining); remaining -= featlen; - strncat(extlist," ",remaining); - --remaining; + if(feature->next) { /* no space at the end */ + strncat(extlist," ",remaining); + --remaining; + } } /* did we add anything? */ if(remaining < 1023)