From 224d353e1c5d85704e6da01a52cb8052d530a189 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 12 Jun 2000 11:18:24 +0000 Subject: [PATCH] strncpy -> memcpy git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8386 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strsep_copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/strsep_copy.c b/lib/roken/strsep_copy.c index 31cc2e1f9..0c7a7b409 100644 --- a/lib/roken/strsep_copy.c +++ b/lib/roken/strsep_copy.c @@ -53,7 +53,7 @@ strsep_copy(const char **stringp, const char *delim, char *buf, size_t len) return -1; *stringp = *stringp + strcspn(*stringp, delim); l = MIN(len, *stringp - save); - strncpy(buf, save, l); + memcpy(buf, save, l); buf[l] = '\0'; l = *stringp - save;