]> code.delx.au - gnu-emacs/commitdiff
* fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int,
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 10 Dec 2012 01:44:32 +0000 (17:44 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 10 Dec 2012 01:44:32 +0000 (17:44 -0800)
for string length.

src/ChangeLog
src/fileio.c

index 222be9575b8a4122ecac1e01b8dbee91c50cee2b..dd51eb9ed3b4abcedb49716aca590609906806f1 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int,
+       for string length.
+
 2012-12-08  Eli Zaretskii  <eliz@gnu.org>
 
        * w32.c (unsetenv): Return 0 if the input string is too long.
index de3b84ba95dc2e9ca9a23a1388110d951ab4d131..56c340bfa40a68db37d6d99906f6444e3d924de0 100644 (file)
@@ -1590,7 +1590,7 @@ those `/' is discarded.  */)
 {
   char *nm, *s, *p, *o, *x, *endp;
   char *target = NULL;
-  int total = 0;
+  ptrdiff_t total = 0;
   bool substituted = 0;
   bool multibyte;
   char *xnm;