This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.26.9000-966-geb42857


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  eb4285768bb0608e2c3381d0a5214cae83b1f282 (commit)
      from  cc683f7ed4a5bd8ce2c9b715581de727b04eb599 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=eb4285768bb0608e2c3381d0a5214cae83b1f282

commit eb4285768bb0608e2c3381d0a5214cae83b1f282
Author: Steve Ellcey <sellcey@caviumnetworks.com>
Date:   Tue Dec 12 13:47:32 2017 -0800

    Use memcpy instead of strncpy in nscd/nscd.h to fix build problem with ToT GCC
    
    	* nscd/nscd.h (init_traced_file): Change strncpy to memcpy.

diff --git a/ChangeLog b/ChangeLog
index 3490300..817f0d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-12-12  Steve Ellcey  <sellcey@cavium.com>
+
+	* nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
+
 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* libio/Makefile (tests): Add tst-bz22415.
diff --git a/nscd/nscd.h b/nscd/nscd.h
index c6b0a3c..edcb5b6 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.  */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog   |    4 ++++
 nscd/nscd.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]