summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-31 23:01:28 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-31 23:01:28 +0000
commita20aa42ac40f04d2fd7d9cbee3cb55d5cd57d96b (patch)
tree1410535aae2581a2afc82a207f89ec923657be58
parente92ee12893ca6320f5331384b2c2e8560ca9c88a (diff)
downloadrsync-a20aa42ac40f04d2fd7d9cbee3cb55d5cd57d96b.tar.gz
a simple fix to the memory problems with the string pool patch. The
string pools conflict with the lastdir memory saving tricks.
-rw-r--r--flist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/flist.c b/flist.c
index 5393392a..4ad30964 100644
--- a/flist.c
+++ b/flist.c
@@ -534,7 +534,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap,
if (lastdir && strcmp(fname, lastdir)==0) {
file->dirname = lastdir;
} else {
- file->dirname = STRDUP(ap, fname);
+ file->dirname = strdup(fname);
lastdir = file->dirname;
}
file->basename = STRDUP(ap, p+1);
@@ -579,7 +579,7 @@ struct file_struct *make_file(int f, char *fname, struct string_area **ap,
if (lastdir && strcmp(lastdir, flist_dir)==0) {
file->basedir = lastdir;
} else {
- file->basedir = STRDUP(ap, flist_dir);
+ file->basedir = strdup(flist_dir);
lastdir = file->basedir;
}
} else {