summaryrefslogtreecommitdiff
path: root/src/util/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/strings.c')
-rw-r--r--src/util/strings.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/strings.c b/src/util/strings.c
index d69244e83..ae0544296 100644
--- a/src/util/strings.c
+++ b/src/util/strings.c
@@ -826,8 +826,7 @@ GNUNET_STRINGS_absolute_time_to_string (struct GNUNET_TIME_Absolute t)
(uint8_t *) buf, &ssize);
if (conved != (uint8_t *) buf)
{
- strncpy (buf, (char *) conved, sizeof (buf));
- buf[255 - 1] = '\0';
+ GNUNET_strlcpy (buf, (char *) conved, sizeof (buf));
free (conved);
}
}