diff options
Diffstat (limited to 'src/rexmpp_jid.c')
-rw-r--r-- | src/rexmpp_jid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rexmpp_jid.c b/src/rexmpp_jid.c index 659df3e..522a492 100644 --- a/src/rexmpp_jid.c +++ b/src/rexmpp_jid.c @@ -56,7 +56,7 @@ int rexmpp_jid_parse (const char *str, struct rexmpp_jid *jid) { } /* Copy all the parts. */ - strncpy(jid->full, str, full_len); + strncpy(jid->full, str, 3072); jid->full[full_len] = '\0'; strncpy(jid->bare, str, bare_len); jid->bare[bare_len] = '\0'; |