Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
collectd
> collectd-fix-snprintf-overflow.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File collectd-fix-snprintf-overflow.patch of Package collectd (Revision 5)
Currently displaying revision
5
,
show latest
--- src/sensors.c.orig 2007-06-04 23:15:02.000000000 +0200 +++ src/sensors.c 2007-06-04 23:16:21.000000000 +0200 @@ -394,7 +394,7 @@ } else if (feature->chip->bus == SENSORS_CHIP_NAME_BUS_DUMMY) { - if (snprintf (plugin_instance, 512, "%s-%s-%04x", + if (snprintf (plugin_instance, DATA_MAX_NAME_LEN, "%s-%s-%04x", feature->chip->prefix, feature->chip->busname, feature->chip->addr) @@ -403,7 +403,7 @@ } else { - if (snprintf (plugin_instance, 512, "%s-i2c-%d-%02x", + if (snprintf (plugin_instance, DATA_MAX_NAME_LEN, "%s-i2c-%d-%02x", feature->chip->prefix, feature->chip->bus, feature->chip->addr)