mirror of
https://github.com/strophe/libstrophe.git
synced 2026-08-03 18:56:21 +00:00
Shorten the nlen+dlen+rlen part
This commit is contained in:
committed by
Dmitry Podgorny
parent
a4558b69df
commit
442914c375
@@ -56,7 +56,7 @@ char *xmpp_jid_new(xmpp_ctx_t *ctx, const char *node,
|
|||||||
result[nlen+dlen] = '/';
|
result[nlen+dlen] = '/';
|
||||||
memcpy(result+nlen+dlen+1, resource, rlen - 1);
|
memcpy(result+nlen+dlen+1, resource, rlen - 1);
|
||||||
}
|
}
|
||||||
result[nlen+dlen+rlen] = '\0';
|
result[len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user