Shorten the nlen+dlen+rlen part

This commit is contained in:
Tristan Le Guern
2015-09-27 20:54:25 +02:00
committed by Dmitry Podgorny
parent a4558b69df
commit 442914c375

View File

@@ -56,7 +56,7 @@ char *xmpp_jid_new(xmpp_ctx_t *ctx, const char *node,
result[nlen+dlen] = '/';
memcpy(result+nlen+dlen+1, resource, rlen - 1);
}
result[nlen+dlen+rlen] = '\0';
result[len] = '\0';
}
return result;