~ubuntu-branches/ubuntu/oneiric/collectd/oneiric

« back to all changes in this revision

Viewing changes to src/df.c

  • Committer: Bazaar Package Importer
  • Author(s): Morten Kjeldgaard
  • Date: 2008-11-18 15:54:20 UTC
  • mfrom: (1.1.5 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20081118155420-sc2mxv2pebafkmon
Tags: 4.4.2-2ubuntu1
* Merge from Debian unstable (LP: #298828). Remaining Ubuntu changes:
* Add ubuntu_in6-glibc28.dpatch patch, fix FTBFS.
* Add ubuntu_hardening.dpatch patch, fix FTBFS.
* Add ubuntu_perl.c.dpatch, fix FTBFS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        vl.values = values;
126
126
        vl.values_len = 2;
127
127
        vl.time = time (NULL);
128
 
        strcpy (vl.host, hostname_g);
129
 
        strcpy (vl.plugin, "df");
130
 
        strcpy (vl.plugin_instance, "");
 
128
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
 
129
        sstrncpy (vl.plugin, "df", sizeof (vl.plugin));
 
130
        sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
131
131
        strncpy (vl.type_instance, df_name, sizeof (vl.type_instance));
132
132
 
133
133
        plugin_dispatch_values ("df", &vl);