X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_time.c;h=ab440edb6d84fbdb4def2a5c4c66ad9be6e7fd46;hp=815d9697fd3d08d0d7dbc43e8e051af6325739c2;hb=da11ce02eb202b3e01d3e2d1b40f248a84430973;hpb=2412d3ca76f7ac24e67543720c1d385188da0ce3 diff --git a/src/daemon/utils_time.c b/src/daemon/utils_time.c index 815d9697..ab440edb 100644 --- a/src/daemon/utils_time.c +++ b/src/daemon/utils_time.c @@ -164,7 +164,7 @@ int format_rfc3339(char *buffer, size_t buffer_size, struct tm const *t_tm, size_left -= len; if (print_nano) { - if ((len = ssnprintf(pos, size_left, ".%09ld", nsec)) == 0) + if ((len = snprintf(pos, size_left, ".%09ld", nsec)) == 0) return ENOMEM; pos += len; size_left -= len;