subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1827562 - /subversion/trunk/subversion/libsvn_client/shelf.c
Date Fri, 23 Mar 2018 12:34:37 GMT
Author: julianfoad
Date: Fri Mar 23 12:34:37 2018
New Revision: 1827562

URL: http://svn.apache.org/viewvc?rev=1827562&view=rev
Log:
Shelving: fix encoding of non-ASCII shelf names.

* subversion/libsvn__client/shelf.c
  (shelf_name_encode): Use 'unsigned char' not plain 'char'.

Modified:
    subversion/trunk/subversion/libsvn_client/shelf.c

Modified: subversion/trunk/subversion/libsvn_client/shelf.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/shelf.c?rev=1827562&r1=1827561&r2=1827562&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/shelf.c (original)
+++ subversion/trunk/subversion/libsvn_client/shelf.c Fri Mar 23 12:34:37 2018
@@ -59,7 +59,7 @@ shelf_name_encode(char **encoded_name_p,
 
   while (*name)
     {
-      apr_snprintf(out_pos, 3, "%02x", *name++);
+      apr_snprintf(out_pos, 3, "%02x", (unsigned char)(*name++));
       out_pos += 2;
     }
   *encoded_name_p = encoded_name;



Mime
View raw message