]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
GCC on Mac OS is picky about pointer arithmetic.
authorTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 19:30:49 +0000 (14:30 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 21 Feb 2010 19:30:49 +0000 (14:30 -0500)
SVN-Revision: 1944

tar/write.c

index 6774ca2a553e57f6366b2392117f0a29e059aa5e..01e110923e399100140a96cf767befe2c168b70f 100644 (file)
@@ -973,9 +973,9 @@ write_file(struct bsdtar *bsdtar, struct archive *a,
                                } else {
                                        bname += 1;
                                        strcpy(copyfile_name, name);
-                                       strcpy(copyfile_name + bname - name,
+                                       strcpy(copyfile_name + (bname - name),
                                            "._");
-                                       strcpy(copyfile_name + bname - name + 2,
+                                       strcpy(copyfile_name + (bname - name) + 2,
                                            bname);
                                }
                                archive_entry_copy_pathname(extra,