diff -r 48c3730234b1 -r 93133347cbcf libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Thu Aug 12 17:05:07 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Aug 14 04:39:07 2010 +0000 @@ -205,7 +205,7 @@ * resource string from being unreasonably long on systems which stuff the * whole FQDN in the hostname */ if((dot = strchr(hostname, '.'))) - dot = '\0'; + *dot = '\0'; return purple_strreplace(input, "__HOSTNAME__", hostname); }