libpurple/protocols/jabber/jabber.c

changeset 30687
93133347cbcf
parent 30587
dacecb57b543
child 30688
44ebcba31f96
equal deleted inserted replaced
30686:48c3730234b1 30687:93133347cbcf
203 203
204 /* We want only the short hostname, not the FQDN - this will prevent the 204 /* We want only the short hostname, not the FQDN - this will prevent the
205 * resource string from being unreasonably long on systems which stuff the 205 * resource string from being unreasonably long on systems which stuff the
206 * whole FQDN in the hostname */ 206 * whole FQDN in the hostname */
207 if((dot = strchr(hostname, '.'))) 207 if((dot = strchr(hostname, '.')))
208 dot = '\0'; 208 *dot = '\0';
209 209
210 return purple_strreplace(input, "__HOSTNAME__", hostname); 210 return purple_strreplace(input, "__HOSTNAME__", hostname);
211 } 211 }
212 212
213 static gboolean 213 static gboolean

mercurial