From: Tim Kientzle Date: Sun, 21 Feb 2010 19:30:49 +0000 (-0500) Subject: GCC on Mac OS is picky about pointer arithmetic. X-Git-Tag: v3.0.0a~1219 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e8b44687a1ce84790f6e3de6c752f501c08054f;p=thirdparty%2Flibarchive.git GCC on Mac OS is picky about pointer arithmetic. SVN-Revision: 1944 --- diff --git a/tar/write.c b/tar/write.c index 6774ca2a5..01e110923 100644 --- a/tar/write.c +++ b/tar/write.c @@ -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,