diff options
Diffstat (limited to 'otr.c')
-rw-r--r-- | otr.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1735,6 +1735,9 @@ OtrlPrivKey *match_privkey(irc_t *irc, const char **args) } *p = '\0'; + /* remove trailing whitespace */ + g_strchomp(prefix); + /* find first key which matches the given prefix */ n = strlen(prefix); for (k = irc->otr->us->privkey_root; k; k = k->next) { |