diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-13 02:05:36 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-13 02:05:36 -0300 |
commit | 0b1ae595647712ecd9f69a74f210d58f570e74b9 (patch) | |
tree | a3e390b3412f6e3773189d707898224cb71d16b7 /otr.c | |
parent | 64bed24b810fa3c44d23132b2aa8792fc78ffe77 (diff) |
otr: fix trailing whitespace issues with 'otr forget key'
Fixes trac ticket 1089, https://bugs.bitlbee.org/bitlbee/ticket/1089
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) { |