diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-12-30 20:15:55 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-12-30 20:15:55 +0000 |
commit | 011e451449363e16c2fe2f65ba21ef0495512482 (patch) | |
tree | ec74e4c80a5e03fcd7cd79bbbf97ef23fc1463a5 /epan | |
parent | cc02a10ef86beee96700931432efd0e88fa05360 (diff) |
Only chop the last character (new line) from the error message.
svn path=/trunk/; revision=35310
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-snmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c index 55bfe89941..30354ec398 100644 --- a/epan/dissectors/packet-snmp.c +++ b/epan/dissectors/packet-snmp.c @@ -3199,7 +3199,7 @@ snmp_users_update_cb(void* p _U_, const char** err) } if (es->len) { - g_string_truncate(es,es->len-2); + g_string_truncate(es,es->len-1); *err = ep_strdup(es->str); } |