diff options
author | defanor <defanor@uberspace.net> | 2021-09-22 23:07:18 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2021-09-22 23:07:18 +0300 |
commit | b5dd7de9b2a82018e53e512da19dad319edd0afa (patch) | |
tree | 86be9b6da0f5b88aa743250d4fe0dc1060faabc4 /src/rexmpp_jid.c | |
parent | 54cd916b857b0067223309466943011c1b2976fc (diff) |
Fix a few GCC warnings
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'; |