diff options
author | Alex Deymo <deymo@chromium.org> | 2015-09-28 23:54:23 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-28 23:54:23 +0000 |
commit | fec92afbfe8dcba2e3d5ebe2eef1a03c1f28f50b (patch) | |
tree | 206b7c0d9d6d11d04be13f0c94d44ab88681e34f | |
parent | 860e7b22ca5ac745359b9d8c006edbdc3ddb588c (diff) | |
parent | f3767966ffaa0f6f42130ea94621e48fcb675c30 (diff) | |
download | bsdiff-fec92afbfe8dcba2e3d5ebe2eef1a03c1f28f50b.tar.gz |
am f3767966: bspatch: Fix arg names.
* commit 'f3767966ffaa0f6f42130ea94621e48fcb675c30':
bspatch: Fix arg names.
-rw-r--r-- | bspatch.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -160,16 +160,16 @@ int bspatch( if (using_extents) { size_t ex_count = 0; ex_t *ex_arr = parse_extent_str(old_extents, &ex_count); - old_file = exfile_fopen(new_filename, "r", ex_arr, ex_count, + old_file = exfile_fopen(old_filename, "r", ex_arr, ex_count, free); } else { - old_file = fopen(new_filename, "r"); + old_file = fopen(old_filename, "r"); } if (!old_file || fseek(old_file, 0, SEEK_END) != 0 || (oldsize = ftell(old_file)) < 0 || fseek(old_file, 0, SEEK_SET) != 0) - err(1, "cannot obtain the size of %s", new_filename); + err(1, "cannot obtain the size of %s", old_filename); off_t old_file_pos = 0; if((new=malloc(newsize+1))==NULL) err(1,NULL); |