summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41234a4)
raw | patch | inline | side by side (parent: 41234a4)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 25 Jul 2008 14:17:18 +0000 (16:17 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 27 Jul 2008 09:43:45 +0000 (11:43 +0200) |
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/examples/myplugin.c | patch | blob | history |
index 240c6c3a8932cd0f8c31e485edf202ca96e93d38..f68cc1ac85c090792efa1bfe9433272327b378fa 100644 (file)
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "myplugin");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "myplugin", sizeof (vl.plugin));
/* optionally set vl.plugin_instance and vl.type_instance to reasonable
* values (default: "") */