aboutsummaryrefslogtreecommitdiff
path: root/dpi/downloads.cc
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-05-22 21:19:36 +0200
committerjcid <devnull@localhost>2008-05-22 21:19:36 +0200
commitdd92ec5e90ccd4a552563b06c3e87d7618599745 (patch)
treec29b8e7f39eb87dd2123af755fff4d098898be2a /dpi/downloads.cc
parentfd2515a4fa2d803750067f1b2201fabedc0340b1 (diff)
- s/strdup/dStrdup/
Diffstat (limited to 'dpi/downloads.cc')
-rw-r--r--dpi/downloads.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dpi/downloads.cc b/dpi/downloads.cc
index d35f6f25..4dfa5549 100644
--- a/dpi/downloads.cc
+++ b/dpi/downloads.cc
@@ -301,9 +301,9 @@ DLItem::DLItem(const char *full_filename, const char *url, DLAction action)
fcntl(LogPipe[0], F_SETFL,
O_NONBLOCK | fcntl(LogPipe[0], F_GETFL));
- fullname = strdup(full_filename);
+ fullname = dStrdup(full_filename);
p = strrchr(fullname, '/');
- shortname = (p) ? strdup(p + 1) : strdup("??");
+ shortname = (p) ? dStrdup(p + 1) : dStrdup("??");
p = strrchr(full_filename, '/');
target_dir= p ? dStrndup(full_filename,p-full_filename+1) : dStrdup("??");