Mercurial > hg
comparison mcabber/src/jabglue.c @ 393:f8f3c7493457
Whitespace cleanup
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 04 Aug 2005 23:04:54 +0100 |
parents | 2bbeef7b4fdd |
children | 17aa60c6dc63 |
comparison
equal
deleted
inserted
replaced
392:6329c9601704 | 393:f8f3c7493457 |
---|---|
1 /* | 1 /* |
2 * jabglue.c -- Jabber protocol handling | 2 * jabglue.c -- Jabber protocol handling |
3 * | 3 * |
4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> | 4 * Copyright (C) 2005 Mikael Berthe <bmikael@lists.lilotux.net> |
5 * Parts come from the centericq project: | 5 * Parts come from the centericq project: |
6 * Copyright (C) 2002-2005 by Konstantin Klyagin <konst@konst.org.ua> | 6 * Copyright (C) 2002-2005 by Konstantin Klyagin <konst@konst.org.ua> |
7 * | 7 * |
8 * This program is free software; you can redistribute it and/or modify | 8 * This program is free software; you can redistribute it and/or modify |
109 } | 109 } |
110 | 110 |
111 char *compose_jid(const char *username, const char *servername, | 111 char *compose_jid(const char *username, const char *servername, |
112 const char *resource) | 112 const char *resource) |
113 { | 113 { |
114 char *jid = g_new(char, | 114 char *jid = g_new(char, 3 + |
115 strlen(username)+strlen(servername)+strlen(resource)+3); | 115 strlen(username) + strlen(servername) + strlen(resource)); |
116 strcpy(jid, username); | 116 strcpy(jid, username); |
117 strcat(jid, "@"); | 117 strcat(jid, "@"); |
118 strcat(jid, servername); | 118 strcat(jid, servername); |
119 strcat(jid, "/"); | 119 strcat(jid, "/"); |
120 strcat(jid, resource); | 120 strcat(jid, resource); |