[git] GnuPG - branch, master, updated. gnupg-2.1.20-43-ga144616

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Apr 11 04:28:18 CEST 2017


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 "The GNU Privacy Guard".

The branch, master has been updated
       via  a1446163d584cdc3003c7d5b5fc6d74737c1732d (commit)
      from  1b6adab41d386b587f65e5c6f14a63859ac1226b (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 -----------------------------------------------------------------
commit a1446163d584cdc3003c7d5b5fc6d74737c1732d
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Apr 11 11:23:05 2017 +0900

    tools: Portability fix for gpgparsemail.
    
    * tools/rfc822parse.c (my_stpcpy): Rename from stpcpy.
    
    --
    
    When HAVE_STPCPY is not defined (no definition in libc), still,
    compiler may have definition as a built-in function (for some specific
    case like second argument is constant).  In that case, having stpcpy
    implementation with the same name but different signature ("static"
    qualifier) is not good.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/tools/rfc822parse.c b/tools/rfc822parse.c
index ee81b5d..412599b 100644
--- a/tools/rfc822parse.c
+++ b/tools/rfc822parse.c
@@ -155,7 +155,7 @@ capitalize_header_name (unsigned char *name)
 
 #ifndef HAVE_STPCPY
 static char *
-stpcpy (char *a,const char *b)
+my_stpcpy (char *a,const char *b)
 {
   while (*b)
     *a++ = *b++;
@@ -163,6 +163,7 @@ stpcpy (char *a,const char *b)
 
   return (char*)a;
 }
+#define stpcpy my_stpcpy
 #endif
 
 

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

Summary of changes:
 tools/rfc822parse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list