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

« back to all changes in this revision

Viewing changes to src/apcups.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:
373
373
        vl.values = values;
374
374
        vl.values_len = 1;
375
375
        vl.time = time (NULL);
376
 
        strcpy (vl.host, hostname_g);
377
 
        strcpy (vl.plugin, "apcups");
378
 
        strcpy (vl.plugin_instance, "");
 
376
        sstrncpy (vl.host, hostname_g, sizeof (vl.host));
 
377
        sstrncpy (vl.plugin, "apcups", sizeof (vl.plugin));
 
378
        sstrncpy (vl.plugin_instance, "", sizeof (vl.plugin_instance));
379
379
        strncpy (vl.type_instance, type_inst, sizeof (vl.type_instance));
380
380
 
381
381
        plugin_dispatch_values (type, &vl);