summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-10-05 04:12:07 +0200
committerGuillem Jover <guillem@debian.org>2009-10-05 04:12:07 +0200
commit3adb9397a0d82c0f42fd93455b69585693cf162a (patch)
treea582daede1ea579447d936d8f4aca86eea206fbf /src
parentf35d66dbc228bc8ad2c5255dee1bf4ecf9ee6e06 (diff)
downloaddpkg-3adb9397a0d82c0f42fd93455b69585693cf162a.tar.gz
libdpkg: Change order and rename path_quote_filename arguments
Place the size at the end, and rename buf to dst, and s to src.
Diffstat (limited to 'src')
-rw-r--r--src/archives.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archives.c b/src/archives.c
index 41d3f0744..48221a7db 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -201,7 +201,7 @@ tarfile_skip_one_forward(struct TarInfo *ti,
fd_null_copy(tc->backendpipe, ti->Size,
_("skipped unpacking file '%.255s' (replaced or excluded?)"),
- path_quote_filename(fnamebuf, 256, ti->Name));
+ path_quote_filename(fnamebuf, ti->Name, 256));
r = ti->Size % TARBLKSZ;
if (r > 0)
r = safe_read(tc->backendpipe, databuf, TARBLKSZ - r);
@@ -639,7 +639,7 @@ int tarobject(struct TarInfo *ti) {
{ char fnamebuf[256];
fd_fd_copy(tc->backendpipe, fd, ti->Size,
_("backend dpkg-deb during `%.255s'"),
- path_quote_filename(fnamebuf, 256, ti->Name));
+ path_quote_filename(fnamebuf, ti->Name, 256));
}
r= ti->Size % TARBLKSZ;
if (r > 0) r= safe_read(tc->backendpipe,databuf,TARBLKSZ - r);