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

« back to all changes in this revision

Viewing changes to src/vmem.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:
46
46
  vl.values_len = values_len;
47
47
 
48
48
  vl.time = time (NULL);
49
 
  strcpy (vl.host, hostname_g);
50
 
  strcpy (vl.plugin, "vmem");
 
49
  sstrncpy (vl.host, hostname_g, sizeof (vl.host));
 
50
  sstrncpy (vl.plugin, "vmem", sizeof (vl.plugin));
51
51
  if (plugin_instance != NULL)
52
52
    sstrncpy (vl.plugin_instance, plugin_instance, sizeof (vl.plugin_instance));
53
53
  if (type_instance != NULL)