X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fusers.c;h=1e337540e5b4f5b258d00234472385c8a1187454;hb=f1b5b8611d87a7904c31ae4b28ea47f11f3c38b9;hp=5b12e98cc9a5d9bf0efb797818fd69855857dfef;hpb=bab707fe46b2ef69f391864f3bb08b4dca19634e;p=collectd.git diff --git a/src/users.c b/src/users.c index 5b12e98c..1e337540 100644 --- a/src/users.c +++ b/src/users.c @@ -1,6 +1,9 @@ /** * collectd - src/users.c * Copyright (C) 2005-2007 Sebastian Harl + * Copyright (C) 2005 Niki W. Waibel + * Copyright (C) 2005-2007 Florian octo Forster + * Copyright (C) 2008 Oleg King * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,6 +20,9 @@ * * Authors: * Sebastian Harl + * Niki W. Waibel + * Florian octo Forster + * Oleg King **/ #include "collectd.h" @@ -48,10 +54,9 @@ static void users_submit (gauge_t value) vl.values = values; vl.values_len = 1; - vl.time = time (NULL); - strcpy (vl.host, hostname_g); - strcpy (vl.plugin, "users"); - strcpy (vl.type, "users"); + sstrncpy (vl.host, hostname_g, sizeof (vl.host)); + sstrncpy (vl.plugin, "users", sizeof (vl.plugin)); + sstrncpy (vl.type, "users", sizeof (vl.plugin)); plugin_dispatch_values (&vl); } /* void users_submit */