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 /asn1/snmp/packet-snmp-template.c | |
parent | cc02a10ef86beee96700931432efd0e88fa05360 (diff) |
Only chop the last character (new line) from the error message.
svn path=/trunk/; revision=35310
Diffstat (limited to 'asn1/snmp/packet-snmp-template.c')
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 3c3250dba2..e6eac843e7 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -1975,7 +1975,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); } |