summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7746d34)
raw | patch | inline | side by side (parent: 7746d34)
author | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Wed, 11 Jun 2008 12:32:19 +0000 (14:32 +0200) | ||
committer | Florian Forster <sifnfors@informatik.stud.uni-erlangen.de> | |
Wed, 11 Jun 2008 12:32:19 +0000 (14:32 +0200) |
This changes all files that are new in 4.4.
src/ascent.c | patch | blob | history | |
src/powerdns.c | patch | blob | history | |
src/vmem.c | patch | blob | history |
diff --git a/src/ascent.c b/src/ascent.c
index 94691d6b08a545e4b72ffad26e09b775a5624db7..8c0bbec600152aee448cd34a7008eae4dadabcc0 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
vl.values = values;
vl.values_len = 1;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "ascent");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "ascent", sizeof (vl.plugin));
if (plugin_instance != NULL)
sstrncpy (vl.plugin_instance, plugin_instance,
diff --git a/src/powerdns.c b/src/powerdns.c
index 51e39ee245e87b2deb4d9e51e706df1147c26a3e..644dd56b99f3d1dec0ead8d926145a9e7d274582 100644 (file)
--- a/src/powerdns.c
+++ b/src/powerdns.c
}
else
{
- strcpy (buffer, "get ");
+ sstrncpy (buffer, "get ", sizeof (buffer));
status = strjoin (&buffer[4], sizeof (buffer) - strlen ("get "),
li->fields, li->fields_num,
/* seperator = */ " ");
diff --git a/src/vmem.c b/src/vmem.c
index e0f76e765541bdfb5de7421c643e68994c1d5b25..5341e1594798b9eb24b0826f489e87054ad80a78 100644 (file)
--- a/src/vmem.c
+++ b/src/vmem.c
vl.values_len = values_len;
vl.time = time (NULL);
- strcpy (vl.host, hostname_g);
- strcpy (vl.plugin, "vmem");
+ sstrncpy (vl.host, hostname_g, sizeof (vl.host));
+ sstrncpy (vl.plugin, "vmem", sizeof (vl.plugin));
if (plugin_instance != NULL)
sstrncpy (vl.plugin_instance, plugin_instance, sizeof (vl.plugin_instance));
if (type_instance != NULL)