diff options
Diffstat (limited to 'nscd')
-rw-r--r-- | nscd/nscd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h index c6b0a3c836..edcb5b6cde 100644 --- a/nscd/nscd.h +++ b/nscd/nscd.h @@ -108,7 +108,7 @@ init_traced_file(struct traced_file *file, const char *fname, int crinit) size_t len = (size_t)(dname - fname); if (len > sizeof (file->dname)) abort (); - strncpy (file->dname, file->fname, len); + memcpy (file->dname, file->fname, len); file->dname[len] = '\0'; } /* The basename is the name just after the last forward slash. */ |