diff --git a/net-snmp-5.5.0_gcc45.patch b/net-snmp-5.5.0_gcc45.patch index 74e0ef8..5b894a8 100644 --- a/net-snmp-5.5.0_gcc45.patch +++ b/net-snmp-5.5.0_gcc45.patch @@ -32,7 +32,7 @@ Index: agent/mibgroup/ucd-snmp/pass.c break; } - strncat(passthru->command, buf, sizeof(passthru->command)); -+ strncat(passthru->command, buf, sizeof(passthru->command)-1); ++ strncat(passthru->command, buf, sizeof(passthru->command)-strlen(passthru->command)-1); passthru->command[ sizeof(passthru->command)-1 ] = 0; DEBUGMSGTL(("ucd-snmp/pass", "pass-running: %s", passthru->command)); diff --git a/net-snmp.changes b/net-snmp.changes index be27225..2b31be1 100644 --- a/net-snmp.changes +++ b/net-snmp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 5 17:33:34 UTC 2010 - lchiquitto@novell.com + +- Fix strncat properly (from Andreas Jaeger) + ------------------------------------------------------------------- Mon Mar 1 20:45:50 UTC 2010 - aj@suse.de diff --git a/net-snmp.spec b/net-snmp.spec index ed7060c..3e8d06a 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -20,7 +20,7 @@ Name: net-snmp Version: 5.5 -Release: 3 +Release: 4 # License: BSD3c(or similar) ; MIT License (or similar) Group: Productivity/Networking/Other